[gnumeric] GUI: Small toolbar icons.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Small toolbar icons.
- Date: Thu, 30 Jan 2014 19:50:12 +0000 (UTC)
commit 35aa00e4c3d38dc5240b86a6f0ed043106922168
Author: Morten Welinder <terra gnome org>
Date: Thu Jan 30 14:49:30 2014 -0500
GUI: Small toolbar icons.
Consider this a test. Comments, please.
I wish this was easily stylable.
ChangeLog | 3 +++
src/wbc-gtk.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8e229ae..bad638c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-01-30 Morten Welinder <terra gnome org>
+ * src/wbc-gtk.c (cb_add_menus_toolbars): Tentatively request small
+ toolbar icons.
+
* src/item-cursor.c (item_cursor_draw): Make the ant animation
smoother (when not using the fallback). Avoid using hard light
for ant-ing -- that doesn't work for the same reason as alpha not
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 2761dcf..1364301 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -4393,6 +4393,7 @@ cb_add_menus_toolbars (G_GNUC_UNUSED GtkUIManager *ui,
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (w), TRUE);
gtk_toolbar_set_style (GTK_TOOLBAR (w), GTK_TOOLBAR_ICONS);
+ gtk_toolbar_set_icon_size (GTK_TOOLBAR (w), GTK_ICON_SIZE_SMALL_TOOLBAR);
entry.name = toggle_name;
entry.stock_id = NULL;
@@ -5661,6 +5662,7 @@ wbc_gtk_init (GObject *obj)
char *uifile;
unsigned i;
GEnumClass *posclass;
+ GtkStyleContext *ctxt;
wbcg->gui = gnm_gtk_builder_load ("wbcg.ui", NULL, NULL);
wbcg->cancel_button = GET_GUI_ITEM ("cancel_button");
@@ -5712,6 +5714,8 @@ wbc_gtk_init (GObject *obj)
wbcg->idle_update_style_feedback = 0;
wbcg_set_toplevel (wbcg, GET_GUI_ITEM ("toplevel"));
+ ctxt = gtk_widget_get_style_context (GTK_WIDGET (wbcg_toplevel (wbcg)));
+ gtk_style_context_add_class (ctxt, "gnumeric");
g_signal_connect (wbcg_toplevel (wbcg), "window_state_event",
G_CALLBACK (cb_wbcg_window_state_event),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]