[gnome-control-center] shell/alt: Make CcWindow use custom title widget (if any)
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell/alt: Make CcWindow use custom title widget (if any)
- Date: Fri, 4 Nov 2016 22:39:56 +0000 (UTC)
commit 79335072139de972445e5075195dcbb5a63771ef
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jun 6 13:03:11 2016 +0200
shell/alt: Make CcWindow use custom title widget (if any)
If the current panel requests setting a custom widget, honor that
and place those in the headerbar.
shell/alt/cc-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index 2fd20dd..f30c0f1 100644
--- a/shell/alt/cc-window.c
+++ b/shell/alt/cc-window.c
@@ -121,7 +121,7 @@ activate_panel (CcWindow *self,
const gchar *name,
GIcon *gicon)
{
- GtkWidget *box;
+ GtkWidget *box, *title_widget;
const gchar *icon_name;
if (!id)
@@ -153,6 +153,9 @@ activate_panel (CcWindow *self,
gtk_window_set_default_icon_name (icon_name);
gtk_window_set_icon_name (GTK_WINDOW (self), icon_name);
+ title_widget = cc_panel_get_title_widget (CC_PANEL (self->current_panel));
+ gtk_header_bar_set_custom_title (GTK_HEADER_BAR (self->panel_headerbar), title_widget);
+
self->current_panel_box = box;
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]