From 4d2f528b3e06d5073ebca9cb65085fb2b2327538 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Thu, 15 Apr 1999 19:24:29 +0000 Subject: [PATCH] 1999-04-15 * gaction.c (gmc_unable_to_execute_dlg): really ugly hack to set label. --- gnome/ChangeLog | 4 ++++ gnome/gaction.c | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index 002d104de..2bd45a41c 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,7 @@ +1999-04-15 + + * gaction.c (gmc_unable_to_execute_dlg): really ugly hack to set label. + 1999-04-13 Miguel de Icaza * gtkdtree.c (gtk_dtree_destroy): Memory leak fix: destroy diff --git a/gnome/gaction.c b/gnome/gaction.c index a377d3ee6..1c4c21d88 100644 --- a/gnome/gaction.c +++ b/gnome/gaction.c @@ -25,6 +25,7 @@ static void gmc_unable_to_execute_dlg (gchar *fname, const gchar *command, gchar *action, const gchar *mime) { GtkWidget *msg_dialog = NULL; + GtkWidget *hack_widget; gchar *msg; gchar *fix = NULL; if (!strcmp (action, "x-gnome-app-info")) { @@ -63,11 +64,12 @@ gmc_unable_to_execute_dlg (gchar *fname, const gchar *command, gchar *action, co GNOME_STOCK_BUTTON_OK, NULL); /* Kids, don't try this at home */ - /* this is pretty evil... <-: + /* this is pretty evil... <-: */ hack_widget = GNOME_DIALOG (msg_dialog)->vbox; - hack_widget = GTK_WIDGET (GTK_BOX (hack_widget)->children->data); + hack_widget = ((GtkBoxChild *) GTK_BOX (hack_widget)->children->data)->widget; + hack_widget = ((GtkBoxChild *) GTK_BOX (hack_widget)->children->next->data)->widget; gtk_label_set_line_wrap (GTK_LABEL (hack_widget), TRUE); - */ + gnome_dialog_run_and_close (GNOME_DIALOG (msg_dialog)); g_free (msg);