Changeset 368

Show
Ignore:
Timestamp:
01/01/08 07:56:28 (1 year ago)
Author:
Mike Wey
Message:

Update APILookupGtk.txt to the changes in r360

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wrap/APILookupGtk.txt

    r366 r368  
    42494249    { 
    42504250        // 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); 
    42524258    } 
    42534259     
     
    53205326    { 
    53215327        // 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); 
    53235335    } 
    53245336code: end 
     
    54775489import: gtk.Widget 
    54785490structWrap: GtkWidget* Widget 
    5479  
    5480 nocode: gtk_bin_get_child 
    5481  
    5482 code: start 
    5483     /** 
    5484      * Gets the child of the GtkBin, or NULL if the bin contains 
    5485      * no child widget. The returned widget does not have a reference 
    5486      * added, so you do not need to unref it. 
    5487      * Returns: 
    5488      *  pointer to child of the GtkBin 
    5489      */ 
    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         else 
    5499         { 
    5500             return null; 
    5501         } 
    5502     } 
    5503 code: end 
    5504  
    55055491outFile: Bin 
    55065492