Ethereal-dev: [Ethereal-dev] [PATCH] print dialog broken with gtk2

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Pavel Roskin <proski@xxxxxxx>
Date: Fri, 21 Feb 2003 12:24:09 -0500 (EST)
Hello!

The "Print detail" button in the "Print" dialog is erroneously associated
with a wrong group in the gtk2-specific code.

It should be associated with "Print summary", not with "Command" and
"File".  Here's the patch (tested):

==========================
--- gtk/print_dlg.c
+++ gtk/print_dlg.c
@@ -320,7 +320,7 @@ file_print_cmd_cb(GtkWidget *widget _U_,
                                                             accel_group);
 #else
   detail_rb = gtk_radio_button_new_with_mnemonic_from_widget(
-                                GTK_RADIO_BUTTON(button), "Print _detail");
+                                GTK_RADIO_BUTTON(summary_rb), "Print _detail");
 #endif
   gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(detail_rb), TRUE);
   SIGNAL_CONNECT(detail_rb, "toggled", print_cmd_toggle_detail, NULL);
==========================

-- 
Regards,
Pavel Roskin