From a96f0023d7762767a766ff6cd1c9c8eae0936cf3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Jul 16 2009 18:04:05 +0000 Subject: Make buttons behave --- diff --git a/button-images.patch b/button-images.patch new file mode 100644 index 0000000..68b0f0f --- /dev/null +++ b/button-images.patch @@ -0,0 +1,514 @@ +diff -up gedit-2.27.2/plugins/sort/sort.ui.button-images gedit-2.27.2/plugins/sort/sort.ui +--- gedit-2.27.2/plugins/sort/sort.ui.button-images 2009-07-16 13:54:14.208338015 -0400 ++++ gedit-2.27.2/plugins/sort/sort.ui 2009-07-16 13:56:25.653333726 -0400 +@@ -9,6 +9,10 @@ + 0 + 1 + ++ ++ gtk-sort-ascending ++ 4 ++ + + Sort + GTK_WINDOW_TOPLEVEL +@@ -50,66 +54,9 @@ + True + GTK_RELIEF_NORMAL + True +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- 0 +- 0 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-sort-ascending +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- _Sort +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- PANGO_ELLIPSIZE_NONE +- -1 +- False +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ sort_image ++ _Sort ++ True + + + +diff -up gedit-2.27.2/plugins/spell/gedit-spell-checker-dialog.c.button-images gedit-2.27.2/plugins/spell/gedit-spell-checker-dialog.c +--- gedit-2.27.2/plugins/spell/gedit-spell-checker-dialog.c.button-images 2009-07-16 13:51:51.765583774 -0400 ++++ gedit-2.27.2/plugins/spell/gedit-spell-checker-dialog.c 2009-07-16 13:48:42.535583423 -0400 +@@ -223,12 +223,18 @@ create_dialog (GeditSpellCheckerDialog * + GtkTreeViewColumn *column; + GtkCellRenderer *cell; + GtkTreeSelection *selection; +- gboolean ret; +- gchar *ui_file; + gchar *root_objects[] = { + "content", ++ "check_word_image", ++ "add_word_image", ++ "ignore_image", ++ "change_image", ++ "ignore_all_image", ++ "change_all_image", + NULL + }; ++ gboolean ret; ++ gchar *ui_file; + + g_return_if_fail (dlg != NULL); + +diff -up gedit-2.27.2/plugins/spell/spell-checker.ui.button-images gedit-2.27.2/plugins/spell/spell-checker.ui +--- gedit-2.27.2/plugins/spell/spell-checker.ui.button-images 2009-07-16 13:08:59.501579700 -0400 ++++ gedit-2.27.2/plugins/spell/spell-checker.ui 2009-07-16 13:48:08.324355869 -0400 +@@ -1,6 +1,30 @@ + + + ++ ++ gtk-spell-check ++ 4 ++ ++ ++ gtk-add ++ 4 ++ ++ ++ gtk-go-down ++ 4 ++ ++ ++ gtk-convert ++ 4 ++ ++ ++ gtk-goto-bottom ++ 4 ++ ++ ++ gtk-convert ++ 4 ++ + + True + Check spelling +@@ -121,58 +145,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-spell-check +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- Check _Word +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ check_word_image ++ Check _Word ++ True + + + 0 +@@ -272,58 +247,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-go-down +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- _Ignore +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ ignore_image ++ _Ignore ++ True + + + 0 +@@ -338,58 +264,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-convert +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- Cha_nge +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ change_image ++ Cha_nge ++ True + + + 0 +@@ -404,58 +281,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-goto-bottom +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- Ignore _All +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ ignore_all_image ++ Ignore _All ++ True + + + 1 +@@ -470,58 +298,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-convert +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- Change A_ll +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ change_all_image ++ Change A_ll ++ True + + + 1 +@@ -573,58 +352,9 @@ + True + True + GTK_RELIEF_NORMAL +- +- +- True +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- True +- False +- 2 +- +- +- True +- gtk-add +- 4 +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- True +- Add w_ord +- True +- False +- GTK_JUSTIFY_LEFT +- False +- False +- 0.5 +- 0.5 +- 0 +- 0 +- +- +- 0 +- False +- False +- +- +- +- +- +- ++ add_word_image ++ Add w_ord ++ True + + + 0 diff --git a/gedit.spec b/gedit.spec index 8c8ceab..d41fbf7 100644 --- a/gedit.spec +++ b/gedit.spec @@ -18,7 +18,7 @@ Summary: Text editor for the GNOME desktop Name: gedit Version: 2.27.2 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 License: GPLv2+ and GFDL Group: Applications/Editors @@ -48,6 +48,9 @@ Patch2: gedit-2.25.5-fix-python-path.patch # http://bugzilla.gnome.org/show_bug.cgi?id=587053 Patch3: print-to-file.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=588806 +Patch4: button-images.patch + BuildRequires: gnome-common BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: pango-devel >= %{pango_version} @@ -114,6 +117,7 @@ Install gedit-devel if you want to write plugins for gedit. %patch2 -p1 -b .fix-python-path %patch3 -p1 -b .print-to-file +%patch4 -p1 -b .button-images %build autoreconf -f -i @@ -229,6 +233,9 @@ fi %changelog +* Thu Jul 16 2009 Matthias Clasen - 1:2.27.2-2 +- Make some stubborn buttons behave + * Tue Jun 30 2009 Matthias Clasen - 1:2.27.2-1 - Update to 2.27.2