Patches

Mark Howard <[email protected]>
Newsgroups gmane.comp.web.galeon.devel
Message-ID <[email protected]>
Hi,
  John Lightsey <[email protected]> has created some patches in response
to galeon bugs in the Debian bts. Please review and apply them:

I've submitted some to bugzilla. I've not looked for/found bugzilla
reports for the following:
* 41_default_ok: mozilla dialogs default to ok. Closes: #197391
* 43_smart_bm_width: fixes crash Closes: #197135

-- 
  .''`. Mark Howard
 : :' :
 `. `'  http://www.tildemh.com
   `-   [email protected] | [email protected] | [email protected]
41_default_ok (text/plain, 453 B)
--- mozilla/PromptService.cpp.orig        2003-06-30 05:33:57.000000000 -0500
+++ mozilla/PromptService.cpp     2003-07-02 13:44:15.000000000 -0500
@@ -121,6 +121,7 @@
        set_check_button (check_button, checkValue);
 
        set_title (dialog, dialogTitle);
+       gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
 
        gtk_dialog_run (GTK_DIALOG (dialog));
        get_check_button (check_button, checkValue);
43_smart_bm_width (text/plain, 1.6 KB)
--- bookmarks/bookmarks-single-editor.c.orig     2003-06-30 05:33:58.000000000 -0500
+++ bookmarks/bookmarks-single-editor.c   2003-07-09 02:33:36.000000000 -0500
@@ -73,6 +73,7 @@
 static void            gb_single_editor_init                   (GbSingleEditor *e);
 static void            gb_single_editor_init_widgets           (GbSingleEditor *e);
 static void            gb_single_editor_bookmark_changed_cb    (GbBookmark *b, GbSingleEditor *e);
+static void            gb_single_editor_yield_close            (GObject *o);
 static void            gb_single_editor_finalize_impl          (GObject *o);
 static void            gb_single_editor_update_controls        (GbSingleEditor *e);
 
@@ -126,6 +127,17 @@
 }
 
 static void
+gb_single_editor_yield_close (GObject *o)
+{
+       /* need to flush all events before closing the editor */
+       
+       while (gtk_events_pending())
+               gtk_main_iteration();
+       g_object_unref(o);
+       return;
+}
+
+static void
 gb_single_editor_finalize_impl (GObject *o)
 {
        GbSingleEditor *e = GB_SINGLE_EDITOR (o);
@@ -179,7 +191,7 @@
 
        buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (p->notes_textview));
 
-       g_signal_connect_swapped (p->window, "delete_event", G_CALLBACK (g_object_unref), e);
+       g_signal_connect_swapped (p->window, "delete_event", G_CALLBACK (gb_single_editor_yield_close), e);
        g_signal_connect (p->name_entry, "changed",
                          G_CALLBACK (gb_single_editor_name_entry_changed_cb), e);
        g_signal_connect (p->smarturl_entry, "changed",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.