diff options
| author | Balló György <[email protected]> | 2026-10-24 03:26:51 +0200 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2026-10-24 16:40:08 +0000 |
| commit | e33eab7048a97994e4288bc9644f2854ec127db2 (patch) | |
| tree | ebaa34bcae5b84393d882026aaa53008e0e704f2 /applets/clock | |
| parent | 58ac6c101bdf2e2975c0395723ad16e9c9764f5c (diff) | |
| download | mate-panel-master.tar.bz2 mate-panel-master.tar.xz | |
gtk_show_about_dialog() sets its values only on first invocation, and
cannot be used to display the about dialog with different content.
This fixes the problem that wrong content is shown, when the about dialog
is opened from multiple applets, and the applets are built as in-process.
Diffstat (limited to 'applets/clock')
| -rw-r--r-- | applets/clock/clock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 0c104f31..f4b9580c 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -3687,7 +3687,7 @@ static void display_about_dialog(GtkAction* action, ClockData* cd) NULL }; - gtk_show_about_dialog(NULL, + GtkWidget *about = g_object_new (GTK_TYPE_ABOUT_DIALOG, "program-name", _("Clock"), "title", _("About Clock"), "authors", authors, @@ -3700,6 +3700,10 @@ static void display_about_dialog(GtkAction* action, ClockData* cd) "version", VERSION, "website", PACKAGE_URL, NULL); + + g_signal_connect_swapped (about, "response", + G_CALLBACK (gtk_widget_destroy), about); + gtk_widget_show (about); } static gboolean |
