pike.git / src / post_modules / GTK2 / source / gtkmessagedialog.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkmessagedialog.pre:19:   //! <p>   //! Style properties:   //! int message-border   //! int use-separator      void create(mapping(string:mixed)|int flags, ?int type, ?int buttons,    ?string message, ?GTK2.Window parent)   //! Creates a new message dialog, which is a simple dialog with an icon   //! indicating the dialog type (error, warning, etc) and some text the user   //! may want to see. When the user clicks a button a "response" signal is - //! emitted with response IDs from CONST(GTK2.RESPONSE_). See + //! emitted with response IDs from CONST(GTK_RESPONSE_). See   //! GTK2.Dialog for more details.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args>1) {    INT_TYPE flags,type,buttons;    struct object *o1=NULL;    struct pike_string *message;    const gchar *msg2;    GtkWidget *gmd;    -  get_all_args("create",args,"%i%i%i%t.%o",&flags,&type,&buttons, +  get_all_args(NULL,args,"%i%i%i%t.%o",&flags,&type,&buttons,    &message,&o1);    ref_push_string(message);    f_string_to_utf8(1);    msg2=GSTR0(Pike_sp[-1].u.string);    gmd=gtk_message_dialog_new(GTK_WINDOW(get_gobject(o1)),flags,type,    buttons,msg2,NULL);    THIS->obj=G_OBJECT(gmd);    } else {    INIT_WITH_PROPS(GTK_TYPE_MESSAGE_DIALOG);    }
pike.git/src/post_modules/GTK2/source/gtkmessagedialog.pre:68:   void format_secondary_text(string text)   //! Sets the secondary text of the message dialog to be text.   //! <p>   //! Note that setting a secondary text makes the primary text become bold,   //! unless you have provided explicit markup.   {    pgtk2_verify_inited();    {    struct pike_string *t;    const gchar *t2; -  get_all_args("format_secondary_text",args,"%t",&t); +  get_all_args(NULL,args,"%t",&t);    ref_push_string(t);    f_string_to_utf8(1);    t2=GSTR0(Pike_sp[-1].u.string);    gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(THIS->obj),    t2,NULL);    pop_stack();    }    RETURN_THIS();   }   
pike.git/src/post_modules/GTK2/source/gtkmessagedialog.pre:90:   //! Sets the secondary text of the message dialog to be text, which is   //! marked up with the Pango text markup language.   //! <p>   //! Note tha tsetting a secondary text makes the primary text become bold,   //! unless you have provided explicit markup.   {    pgtk2_verify_inited();    {    struct pike_string *t;    const gchar *t2; -  get_all_args("format_secondary_markup",args,"%t",&t); +  get_all_args(NULL,args,"%t",&t);    ref_push_string(t);    f_string_to_utf8(1);    t2=GSTR0(Pike_sp[-1].u.string);    gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(THIS->obj),    t2,NULL);    pop_stack();    }    RETURN_THIS();   }   endrequire;