shell: Use GtkButton instead GdHeaderButton
remove header-bar from LIBGD_INIT in configure.ac https://bugzilla.gnome.org/show_bug.cgi?id=704170
This commit is contained in:
parent
dd1a0c8dce
commit
48789d617e
2 changed files with 9 additions and 4 deletions
|
@ -111,7 +111,7 @@ COMMON_MODULES="gtk+-3.0 >= $GTK_REQUIRED_VERSION
|
||||||
gio-unix-2.0
|
gio-unix-2.0
|
||||||
gsettings-desktop-schemas >= $SCHEMAS_REQUIRED_VERSION"
|
gsettings-desktop-schemas >= $SCHEMAS_REQUIRED_VERSION"
|
||||||
|
|
||||||
LIBGD_INIT([_view-common notification main-toolbar header-bar stack static])
|
LIBGD_INIT([_view-common notification main-toolbar stack static])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
|
PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
|
||||||
PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
|
PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
|
||||||
|
|
|
@ -1414,6 +1414,7 @@ create_header (CcWindow *self)
|
||||||
{
|
{
|
||||||
CcWindowPrivate *priv = self->priv;
|
CcWindowPrivate *priv = self->priv;
|
||||||
GtkWidget *button;
|
GtkWidget *button;
|
||||||
|
GtkWidget *button_image;
|
||||||
AtkObject *accessible;
|
AtkObject *accessible;
|
||||||
gboolean rtl;
|
gboolean rtl;
|
||||||
|
|
||||||
|
@ -1421,9 +1422,13 @@ create_header (CcWindow *self)
|
||||||
|
|
||||||
priv->header = gtk_header_bar_new ();
|
priv->header = gtk_header_bar_new ();
|
||||||
|
|
||||||
priv->previous_button = button = gd_header_simple_button_new ();
|
priv->previous_button = button = gtk_button_new ();
|
||||||
gd_header_button_set_symbolic_icon_name (GD_HEADER_BUTTON (button),
|
button_image = gtk_image_new_from_icon_name (rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic",
|
||||||
rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic");
|
GTK_ICON_SIZE_MENU);
|
||||||
|
gtk_button_set_image (GTK_BUTTON (button), button_image);
|
||||||
|
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
|
||||||
|
gtk_style_context_add_class (gtk_widget_get_style_context (button),
|
||||||
|
"image-button");
|
||||||
gtk_widget_set_no_show_all (button, TRUE);
|
gtk_widget_set_no_show_all (button, TRUE);
|
||||||
accessible = gtk_widget_get_accessible (button);
|
accessible = gtk_widget_get_accessible (button);
|
||||||
atk_object_set_name (accessible, _("All Settings"));
|
atk_object_set_name (accessible, _("All Settings"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue