Changeset 31
- Timestamp:
- 12/15/06 11:23:06 (2 years ago)
- Files:
-
- trunk/minwin/button.d (modified) (1 diff)
- trunk/minwin/combo.d (modified) (1 diff)
- trunk/minwin/group.d (modified) (1 diff)
- trunk/minwin/listbox.d (modified) (1 diff)
- trunk/minwin/text.d (modified) (2 diffs)
- trunk/minwin/window.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/minwin/button.d
r30 r31 300 300 char* str = gtk_button_get_label(cast(GtkButton*)peer); 301 301 if (str is null) 302 return null;302 return ""; 303 303 else 304 304 return str[0..strlen(str)].dup; trunk/minwin/combo.d
r30 r31 148 148 } 149 149 if (str is null) 150 return null;150 return ""; 151 151 else 152 152 return str[0..strlen(str)].dup; trunk/minwin/group.d
r30 r31 192 192 char* str = gtk_frame_get_label(cast(GtkFrame*)peer); 193 193 if (str is null) 194 return null;194 return ""; 195 195 else 196 196 return str[0..strlen(str)].dup; trunk/minwin/listbox.d
r30 r31 127 127 } 128 128 if (str is null) 129 return null;129 return ""; 130 130 else 131 131 return str[0..strlen(str)].dup; trunk/minwin/text.d
r30 r31 123 123 str = gtk_entry_get_text(cast(GtkEntry*)peer); 124 124 if (str is null) 125 return null;125 return ""; 126 126 else 127 return str[0..strlen(str)].dup;127 return str[0..strlen(str)].dup; 128 128 } 129 129 … … 159 159 assert(false); // TODO 160 160 if (str is null) 161 return null;161 return ""; 162 162 else 163 163 return str[0..strlen(str)].dup; trunk/minwin/window.d
r30 r31 450 450 451 451 void title(char[] str) { 452 gtk_window_set_title(peer, str);452 gtk_window_set_title(peer,toStringz(str)); 453 453 } 454 454 455 455 char[] title() { 456 456 char* cstr = gtk_window_get_title(peer); 457 if (cstr is null) 458 return ""; 457 459 return cstr[0..strlen(cstr)].dup; 458 460 }
