Changeset 368
- Timestamp:
- 01/01/08 07:56:28 (1 year ago)
- Files:
-
- trunk/wrap/APILookupGtk.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wrap/APILookupGtk.txt
r366 r368 4249 4249 { 4250 4250 // GtkWidget* gtk_menu_tool_button_get_menu (GtkMenuToolButton *button); 4251 return new Menu( cast(GtkMenu*)gtk_menu_tool_button_get_menu(gtkMenuToolButton) ); 4251 auto p = gtk_menu_tool_button_get_menu(gtkMenuToolButton); 4252 if(p is null) 4253 { 4254 version(Exceptions) throw new Exception("Null GObject from GTK+."); 4255 else return null; 4256 } 4257 return new Menu(cast(GtkMenu*)p); 4252 4258 } 4253 4259 … … 5320 5326 { 5321 5327 // GtkPrintSettings* gtk_print_unix_dialog_get_settings (GtkPrintUnixDialog *dialog); 5322 return new PrintSettings( gtk_print_unix_dialog_get_settings(gtkPrintUnixDialog) ); 5328 auto p = gtk_print_unix_dialog_get_settings(gtkPrintUnixDialog); 5329 if(p is null) 5330 { 5331 version(Exceptions) throw new Exception("Null GObject from GTK+."); 5332 else return null; 5333 } 5334 return new PrintSettings(p); 5323 5335 } 5324 5336 code: end … … 5477 5489 import: gtk.Widget 5478 5490 structWrap: GtkWidget* Widget 5479 5480 nocode: gtk_bin_get_child5481 5482 code: start5483 /**5484 * Gets the child of the GtkBin, or NULL if the bin contains5485 * no child widget. The returned widget does not have a reference5486 * added, so you do not need to unref it.5487 * Returns:5488 * pointer to child of the GtkBin5489 */5490 public Widget getChild()5491 {5492 // GtkWidget* gtk_bin_get_child (GtkBin *bin);5493 GtkWidget * gtkWidget = gtk_bin_get_child(gtkBin);5494 if ( gtkWidget )5495 {5496 return new Widget(gtkWidget);5497 }5498 else5499 {5500 return null;5501 }5502 }5503 code: end5504 5505 5491 outFile: Bin 5506 5492
