Revert "Get rid of GtkHeaderBar"

This reverts commit fbb25a1ce6.

The rationale is that we want to do a bugfix/maintenance release and
this change targets Xfce 4.18.
This commit is contained in:
Simon Steinbeiss
2022-05-24 11:07:45 +02:00
parent fa7c8dd091
commit b9fec9164f
2 changed files with 76 additions and 48 deletions

View File

@@ -234,6 +234,7 @@ static void
xtm_process_window_init (XtmProcessWindow *window)
{
GtkWidget *button;
gboolean active;
window->settings = xtm_settings_get_default ();
window->channel = xfconf_channel_new (CHANNEL);
@@ -260,6 +261,15 @@ xtm_process_window_init (XtmProcessWindow *window)
G_CALLBACK (xwininfo_clicked_cb), window);
window->filter_searchbar = GTK_WIDGET (gtk_builder_get_object (window->builder, "filter-searchbar"));
button = GTK_WIDGET (gtk_builder_get_object (window->builder, "button-show-filter"));
xfconf_g_property_bind (window->channel, SETTING_SHOW_FILTER, G_TYPE_BOOLEAN,
G_OBJECT (button), "active");
active = xfconf_channel_get_bool (window->channel, SETTING_SHOW_FILTER, FALSE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), active);
gtk_revealer_set_reveal_child (GTK_REVEALER (gtk_bin_get_child (GTK_BIN (window->filter_searchbar))), active);
g_object_bind_property (G_OBJECT (gtk_bin_get_child (GTK_BIN (window->filter_searchbar))), "reveal-child",
G_OBJECT (button), "active", G_BINDING_BIDIRECTIONAL);
{
GtkWidget *toolitem;
guint refresh_rate;
@@ -307,7 +317,6 @@ xtm_process_window_init (XtmProcessWindow *window)
g_signal_connect (G_OBJECT(window->filter_entry), "icon-press", G_CALLBACK(filter_entry_icon_pressed_cb), NULL);
g_signal_connect (G_OBJECT(window->filter_entry), "changed", G_CALLBACK(filter_entry_keyrelease_handler), window->treeview);
gtk_widget_set_tooltip_text (window->filter_entry, _("Filter on process name"));
gtk_widget_grab_focus (window->filter_entry);
}
static void