[gnome-control-center/wip/garnacho/wayland-tablet: 3/31] 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/wip/garnacho/wayland-tablet: 3/31] shell/alt: Make CcWindow use custom title widget (if any)
- Date: Fri, 24 Jun 2016 18:02:03 +0000 (UTC)
commit 518d498b47ffe5c1758b088486e4d054c4b9c355
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 dbc6e5a..a97973d 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]