[brasero] Use the primary-toolbar style class where applicable.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Use the primary-toolbar style class where applicable.
- Date: Mon, 23 May 2011 13:54:42 +0000 (UTC)
commit 872cbc5ce636a8f83a8b3a18759155c1ded5ab21
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 4 00:36:25 2011 -0400
Use the primary-toolbar style class where applicable.
https://bugzilla.gnome.org/show_bug.cgi?id=646680
libbrasero-utils/brasero-jacket-edit.c | 2 ++
src/brasero-project.c | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-utils/brasero-jacket-edit.c b/libbrasero-utils/brasero-jacket-edit.c
index e68d8f4..4f222ba 100644
--- a/libbrasero-utils/brasero-jacket-edit.c
+++ b/libbrasero-utils/brasero-jacket-edit.c
@@ -577,6 +577,8 @@ brasero_jacket_edit_init (BraseroJacketEdit *object)
/* Toolbar */
toolbar = gtk_toolbar_new ();
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
gtk_widget_show (toolbar);
gtk_box_pack_start (GTK_BOX (object), toolbar, FALSE, TRUE, 0);
diff --git a/src/brasero-project.c b/src/brasero-project.c
index 0a3cbda..e77d274 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -2334,6 +2334,7 @@ brasero_project_register_ui (BraseroProject *project, GtkUIManager *manager)
{
GError *error = NULL;
GtkAction *action;
+ GtkWidget *toolbar;
/* menus */
project->priv->project_group = gtk_action_group_new ("ProjectActions1");
@@ -2351,7 +2352,11 @@ brasero_project_register_ui (BraseroProject *project, GtkUIManager *manager)
g_message ("building menus/toolbar failed: %s", error->message);
g_error_free (error);
}
-
+
+ toolbar = gtk_ui_manager_get_widget (manager, "/Toolbar");
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
+
action = gtk_action_group_get_action (project->priv->project_group, "Save");
g_object_set (action,
"short-label", _("_Save"), /* for toolbar buttons */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]