summaryrefslogtreecommitdiff
path: root/shell/eggfindbar.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-13 20:39:35 +0200
committerStefano Karapetsas <[email protected]>2013-10-13 20:39:35 +0200
commit3c4c6984707c72ecf8b8aed32b09a6740820499d (patch)
treecf965976dca7310a51b46c9abc678f1f81d6bade /shell/eggfindbar.c
parenta9f22e7728dd730cf7ca82dd1c7421194262ccfb (diff)
downloadatril-3c4c6984707c72ecf8b8aed32b09a6740820499d.tar.bz2
atril-3c4c6984707c72ecf8b8aed32b09a6740820499d.tar.xz
Enable case sensitive search button
It was available in the previous evince code, but not shown and not working. This commit fixes the button, but case sensitive search need to be fixed in the varios backends. See #41 https://github.com/mate-desktop/mate-document-viewer/issues/41
Diffstat (limited to 'shell/eggfindbar.c')
-rw-r--r--shell/eggfindbar.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index a00e74ed..b557b44b 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -235,13 +235,13 @@ previous_clicked_callback (GtkButton *button,
}
static void
-case_sensitive_toggled_callback (GtkCheckButton *button,
- void *data)
+case_sensitive_toggled_callback (GtkToggleToolButton *button,
+ void *data)
{
EggFindBar *find_bar = EGG_FIND_BAR (data);
egg_find_bar_set_case_sensitive (find_bar,
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)));
+ gtk_toggle_tool_button_get_active (button));
}
static void
@@ -345,7 +345,7 @@ egg_find_bar_init (EggFindBar *find_bar)
/* Case button */
priv->case_button = gtk_toggle_tool_button_new ();
- g_object_set (G_OBJECT (priv->case_button), "label", _("C_ase Sensitive"), NULL);
+ g_object_set (G_OBJECT (priv->case_button), "label", _("Case Sensitive"), NULL);
gtk_tool_item_set_is_important (priv->case_button, TRUE);
gtk_widget_set_tooltip_text (GTK_WIDGET (priv->case_button),
_("Toggle case sensitive search"));
@@ -392,6 +392,7 @@ egg_find_bar_init (EggFindBar *find_bar)
gtk_widget_show_all (GTK_WIDGET (item));
gtk_widget_show_all (GTK_WIDGET (priv->next_button));
gtk_widget_show_all (GTK_WIDGET (priv->previous_button));
+ gtk_widget_show_all (GTK_WIDGET (priv->case_button));
gtk_widget_show (priv->status_label);
}
@@ -628,8 +629,8 @@ egg_find_bar_set_case_sensitive (EggFindBar *find_bar,
{
priv->case_sensitive = case_sensitive;
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->case_button),
- priv->case_sensitive);
+ gtk_toggle_tool_button_set_active (priv->case_button,
+ priv->case_sensitive);
g_object_notify (G_OBJECT (find_bar),
"case_sensitive");