Your example code (which I attached to LP for posterity) seems to work
as expected for me...

I'm a little unclear on what you mean by "Try to close the dialog. In my
case the application freezes."  If you mean the original blank dialog
doesn't actually close if you click on its close button when the about
dialog is up, I think I know what happens.

You are running the about dialog as a modal dialog in its own mainloop.
That's what gtk_dialog_run does.  It prevents you from interacting with
the rest of your app.  You may be instead interested in doing something
like the following:

static void show_about_dialog() {
    static GtkWidget *dialog = NULL;

    if (dialog == NULL) {
        dialog = gtk_about_dialog_new();
        g_signal_connect(dialog, "destroy", gtk_widget_destroyed, &dialog);
        gtk_widget_show(dialog);
    }
    else {
        gtk_window_present_with_time(GTK_WINDOW(dialog), 
gtk_get_current_event_time());
    }
}


Regarding your issue #2, with right clicking.  That's not customizable.  That's 
just how gnome-panel applets work, when you click the border of the applet.  In 
Unity, both right clicks and left clicks will bring up your menu.

Does that help?

** Changed in: indicator-application (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/703254

Title:
  About-dialog feezes when fired from AppIndicator (systray icon).

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to