The following patch fixes keyb. accels of buttons on Debug Messages dialog.
Index: src/ui_utils.h =================================================================== --- src/ui_utils.h (revision 4704) +++ src/ui_utils.h (working copy) -154,6 +154,7 @@ #define GEANY_STOCK_SAVE_ALL "geany-save-all" #define GEANY_STOCK_CLOSE_ALL "geany-close-all" #define GEANY_STOCK_BUILD "geany-build" +#define GEANY_STOCK_CLEAR "geany-clear"
enum { Index: src/log.c =================================================================== --- src/log.c (revision 4704) +++ src/log.c (working copy) -180,7 +180,7 @@
dialog = gtk_dialog_new_with_buttons(_("Debug Messages"), GTK_WINDOW(main_widgets.window), GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_STOCK_CLEAR, DIALOG_RESPONSE_CLEAR, + GEANY_STOCK_CLEAR, DIALOG_RESPONSE_CLEAR, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); vbox = ui_dialog_vbox_new(GTK_DIALOG(dialog)); gtk_box_set_spacing(GTK_BOX(vbox), 6); Index: src/ui_utils.c =================================================================== --- src/ui_utils.c (revision 4704) +++ src/ui_utils.c (working copy) -1812,7 +1812,8 @@ { { GEANY_STOCK_SAVE_ALL, _("Save All"), 0, 0, GETTEXT_PACKAGE }, { GEANY_STOCK_CLOSE_ALL, _("Close All"), 0, 0, GETTEXT_PACKAGE }, - { GEANY_STOCK_BUILD, _("Build"), 0, 0, GETTEXT_PACKAGE } + { GEANY_STOCK_BUILD, _("Build"), 0, 0, GETTEXT_PACKAGE }, + { GEANY_STOCK_CLEAR, _("Cl_ear"), 0, 0, GETTEXT_PACKAGE } };
len = G_N_ELEMENTS(items);
Apparently, messing with stock items was a bad idea. Please ignore the prev. patch, here's the new patch:
Index: src/log.c =================================================================== --- src/log.c (revision 4704) +++ src/log.c (working copy) @@ -180,7 +180,7 @@
dialog = gtk_dialog_new_with_buttons(_("Debug Messages"), GTK_WINDOW(main_widgets.window), GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_STOCK_CLEAR, DIALOG_RESPONSE_CLEAR, + _("Cl_ear"), DIALOG_RESPONSE_CLEAR, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); vbox = ui_dialog_vbox_new(GTK_DIALOG(dialog)); gtk_box_set_spacing(GTK_BOX(vbox), 6);
Am Donnerstag, den 25.02.2010, 05:08 -0800 schrieb Can Koy:
Apparently, messing with stock items was a bad idea. Please ignore the prev. patch, here's the new patch:
Index: src/log.c
--- src/log.c (revision 4704) +++ src/log.c (working copy) @@ -180,7 +180,7 @@
dialog = gtk_dialog_new_with_buttons(_("Debug Messages"), GTK_WINDOW(main_widgets.window), GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLEAR, DIALOG_RESPONSE_CLEAR,
vbox = ui_dialog_vbox_new(GTK_DIALOG(dialog)); gtk_box_set_spacing(GTK_BOX(vbox), 6);_("Cl_ear"), DIALOG_RESPONSE_CLEAR, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);
Applied, thanks!
Can, would it be possible to attach your patches as *.patch-file in future contributions? - That would make it much easier to apply your patches. :)
Regards, Dominic