[gnome-logs] searchpopover: Replace Radios with Check buttons
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] searchpopover: Replace Radios with Check buttons
- Date: Mon, 28 Mar 2022 16:43:59 +0000 (UTC)
commit 897f236e537034fa8fc7339e064cdd6f623efadd
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Mon Oct 11 00:48:28 2021 +0200
searchpopover: Replace Radios with Check buttons
data/gl-searchpopover.ui | 10 +++-------
src/gl-searchpopover.c | 4 ++--
2 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/data/gl-searchpopover.ui b/data/gl-searchpopover.ui
index e47edab..70d0a44 100644
--- a/data/gl-searchpopover.ui
+++ b/data/gl-searchpopover.ui
@@ -292,29 +292,25 @@
<object class="GtkBox">
<property name="visible">True</property>
<child>
- <object class="GtkRadioButton"
id="radiobutton_substring">
+ <object class="GtkCheckButton"
id="checkbutton_substring">
<property name="label"
translatable="yes">Substring</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property
name="receives_default">False</property>
<property name="tooltip_text"
translatable="yes">Match in any part of the string</property>
<property name="hexpand">True</property>
- <property name="xalign">0</property>
<property name="active">True</property>
- <property
name="draw_indicator">False</property>
</object>
</child>
<child>
- <object class="GtkRadioButton"
id="radiobutton_exact">
+ <object class="GtkCheckButton"
id="checkbutton_exact">
<property name="label"
translatable="yes">Exact</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property
name="receives_default">False</property>
<property name="tooltip_text"
translatable="yes">Match complete string only</property>
<property name="hexpand">True</property>
- <property name="xalign">0</property>
- <property
name="draw_indicator">False</property>
- <property
name="group">radiobutton_substring</property>
+ <property
name="group">checkbutton_substring</property>
<signal name="toggled"
handler="search_type_changed"/>
</object>
</child>
diff --git a/src/gl-searchpopover.c b/src/gl-searchpopover.c
index cd0663c..6ee3699 100644
--- a/src/gl-searchpopover.c
+++ b/src/gl-searchpopover.c
@@ -250,7 +250,7 @@ on_parameter_treeview_row_activated (GtkTreeView *tree_view,
}
static void
-search_type_changed (GtkToggleButton *togglebutton,
+search_type_changed (GtkCheckButton *check_button,
gpointer user_data)
{
GlSearchPopover *popover;
@@ -260,7 +260,7 @@ search_type_changed (GtkToggleButton *togglebutton,
priv = gl_search_popover_get_instance_private (popover);
- if (gtk_toggle_button_get_active (togglebutton))
+ if (gtk_check_button_get_active (check_button))
{
priv->search_type = GL_QUERY_SEARCH_TYPE_EXACT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]