Skip to content

Commit 3c4c698

Browse files
committed
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 mate-desktop#41 mate-desktop#41
1 parent a9f22e7 commit 3c4c698

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

shell/eggfindbar.c

+7-6
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ previous_clicked_callback (GtkButton *button,
235235
}
236236

237237
static void
238-
case_sensitive_toggled_callback (GtkCheckButton *button,
239-
void *data)
238+
case_sensitive_toggled_callback (GtkToggleToolButton *button,
239+
void *data)
240240
{
241241
EggFindBar *find_bar = EGG_FIND_BAR (data);
242242

243243
egg_find_bar_set_case_sensitive (find_bar,
244-
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button)));
244+
gtk_toggle_tool_button_get_active (button));
245245
}
246246

247247
static void
@@ -345,7 +345,7 @@ egg_find_bar_init (EggFindBar *find_bar)
345345

346346
/* Case button */
347347
priv->case_button = gtk_toggle_tool_button_new ();
348-
g_object_set (G_OBJECT (priv->case_button), "label", _("C_ase Sensitive"), NULL);
348+
g_object_set (G_OBJECT (priv->case_button), "label", _("Case Sensitive"), NULL);
349349
gtk_tool_item_set_is_important (priv->case_button, TRUE);
350350
gtk_widget_set_tooltip_text (GTK_WIDGET (priv->case_button),
351351
_("Toggle case sensitive search"));
@@ -392,6 +392,7 @@ egg_find_bar_init (EggFindBar *find_bar)
392392
gtk_widget_show_all (GTK_WIDGET (item));
393393
gtk_widget_show_all (GTK_WIDGET (priv->next_button));
394394
gtk_widget_show_all (GTK_WIDGET (priv->previous_button));
395+
gtk_widget_show_all (GTK_WIDGET (priv->case_button));
395396
gtk_widget_show (priv->status_label);
396397
}
397398

@@ -628,8 +629,8 @@ egg_find_bar_set_case_sensitive (EggFindBar *find_bar,
628629
{
629630
priv->case_sensitive = case_sensitive;
630631

631-
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->case_button),
632-
priv->case_sensitive);
632+
gtk_toggle_tool_button_set_active (priv->case_button,
633+
priv->case_sensitive);
633634

634635
g_object_notify (G_OBJECT (find_bar),
635636
"case_sensitive");

0 commit comments

Comments
 (0)