On 14-02-02 07:16 AM, John Ralls wrote:
On Feb 1, 2014, at 10:15 PM, Jim Charlton <j...@jimc.dyndns.org> wrote:

On 14-02-01 08:19 PM, John Ralls wrote:
On Feb 1, 2014, at 3:50 PM, Jim Charlton <j...@jimc.dyndns.org> wrote:

I edited the offending line in gtkselection.c to "return FALSE;" and then 
meta-gtk-osx-gtk3 built just fine.

jim...
Good. My faith in you is restored. ;-)

I'll try to get that fixed, backported, and patched tomorrow.

Regards,
John Ralls

Don't be too quick with the praise.  I am still struggling.  After building 
meta-gtk-osx-gtk3, I built meta-gtk-osx-gtkmm3, also with no problems.  But 
when I compile a simple program, with a dialog box with Gtk::MESSAGE_WARNING, I 
get the same old run time error (no compiler error) and the dialog box does not 
have the proper icon. :-(

I am using gtkmm code to create the dialog box ... as in...
Gtk::MessageDialog dialog2("Dialog Message", FALSE, Gtk::MESSAGE_WARNING, 
Gtk::BUTTONS_CLOSE);

I will try with the gtk+ code tomorrow and see how that goes.
Make sure that $PREFIX/share/icons/gnome/scalable/dialog-warning-symbolic.svg 
exists.

Regards,
John Ralls

I tried a variety of ways to create a dialog box with an icon using gtk code but none of them work in that there is no icon... or the icon is a red X. The last one changes the button text to "Warning" but no icon appears.

// GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, "My Message"); // GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_DESTROY_WITH_PARENT, "gtk_dialog_warning", GTK_BUTTONS_CLOSE, "My Message"); // GtkWidget* dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_ABOUT, GTK_BUTTONS_CLOSE, "My Message"); // GtkWidget* dialog = gtk_dialog_new_with_buttons(NULL, NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CLOSE, GTK_RESPONSE_NONE, NULL); GtkWidget* dialog = gtk_dialog_new_with_buttons(NULL, NULL, GTK_DIALOG_DESTROY_WITH_PARENT, "gtk-dialog-warning", GTK_RESPONSE_NONE, NULL);

    gtk_dialog_run(GTK_DIALOG (dialog));
    gtk_widget_destroy(dialog);


_______________________________________________
Gtk-osx-devel-list mailing list
Gtk-osx-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-devel-list

Reply via email to