From f9d45dcd11272986e9614b92ed22541909f4cf99 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 21 Mar 2003 19:18:52 +0000 Subject: [PATCH] renamed "tab_size" style property to "tab_icon_size" for consistency. 2003-03-21 Sven Neumann * widgets/gimpdockbook.c: renamed "tab_size" style property to "tab_icon_size" for consistency. * etc/gtkrc_user: changed accordingly. --- ChangeLog | 7 +++++++ app/widgets/gimpdockbook.c | 22 +++++++++++----------- etc/gtkrc_user | 8 +++++--- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index bb535f0d34..56251e412a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-03-21 Sven Neumann + + * widgets/gimpdockbook.c: renamed "tab_size" style property to + "tab_icon_size" for consistency. + + * etc/gtkrc_user: changed accordingly. + 2003-03-21 Sven Neumann * plug-ins/mosaic/mosaic_logo.h diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c index e13c54c0be..413b8b62a3 100644 --- a/app/widgets/gimpdockbook.c +++ b/app/widgets/gimpdockbook.c @@ -41,11 +41,11 @@ #include "gimppreview.h" -#define DEFAULT_TAB_BORDER 0 -#define DEFAULT_TAB_SIZE GTK_ICON_SIZE_BUTTON -#define DND_WIDGET_SIZE GTK_ICON_SIZE_DND -#define MENU_WIDGET_SIZE GTK_ICON_SIZE_MENU -#define MENU_WIDGET_SPACING 4 +#define DEFAULT_TAB_BORDER 0 +#define DEFAULT_TAB_ICON_SIZE GTK_ICON_SIZE_BUTTON +#define DND_WIDGET_ICON_SIZE GTK_ICON_SIZE_DND +#define MENU_WIDGET_ICON_SIZE GTK_ICON_SIZE_MENU +#define MENU_WIDGET_SPACING 4 static void gimp_dockbook_class_init (GimpDockbookClass *klass); @@ -144,10 +144,10 @@ gimp_dockbook_class_init (GimpDockbookClass *klass) DEFAULT_TAB_BORDER, G_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, - g_param_spec_enum ("tab_size", + g_param_spec_enum ("tab_icon_size", NULL, NULL, GTK_TYPE_ICON_SIZE, - DEFAULT_TAB_SIZE, + DEFAULT_TAB_ICON_SIZE, G_PARAM_READABLE)); } @@ -294,7 +294,7 @@ gimp_dockbook_add (GimpDockbook *dockbook, g_return_if_fail (GTK_IS_WIDGET (tab_widget)); menu_widget = gimp_dockable_get_tab_widget (dockable, dockbook, - MENU_WIDGET_SIZE); + MENU_WIDGET_ICON_SIZE); g_return_if_fail (GTK_IS_WIDGET (menu_widget)); @@ -426,10 +426,10 @@ gimp_dockbook_get_tab_widget (GimpDockbook *dockbook, GimpDockable *dockable) { GtkWidget *tab_widget; - GtkIconSize tab_size = DEFAULT_TAB_SIZE; + GtkIconSize tab_size = DEFAULT_TAB_ICON_SIZE; gtk_widget_style_get (GTK_WIDGET (dockbook), - "tab_size", &tab_size, + "tab_icon_size", &tab_size, NULL); tab_widget = gimp_dockable_get_tab_widget (dockable, dockbook, tab_size); @@ -601,7 +601,7 @@ gimp_dockbook_tab_drag_begin (GtkWidget *widget, gtk_widget_show (frame); preview = gimp_dockable_get_tab_widget (dockable, dockable->dockbook, - DND_WIDGET_SIZE); + DND_WIDGET_ICON_SIZE); if (GIMP_IS_PREVIEW (preview)) { diff --git a/etc/gtkrc_user b/etc/gtkrc_user index 6bb6721af3..b4bfb1cd41 100644 --- a/etc/gtkrc_user +++ b/etc/gtkrc_user @@ -27,7 +27,7 @@ style "gimp-small-style" GimpImageDock::menu_preview_size = small-toolbar GimpToolbox::tool_icon_size = menu GimpDockbook::tab_border = 0 - GimpDockbook::tab_size = menu + GimpDockbook::tab_icon_size = menu GimpDockable::content_border = 1 GimpDockable::content_spacing = 1 GimpEditor::content_spacing = 1 @@ -35,7 +35,10 @@ style "gimp-small-style" GimpEditor::button_icon_size = menu } -# Example keybinding remapping F2 -> help +# class "GtkWidget" style "gimp-small-style" + + +# Example keybinding to remap Help to F2 binding "gimp-help-binding" { @@ -47,7 +50,6 @@ binding "gimp-help-binding" bind "KP_F2" { "show-help" (tooltip) } } -# class "GtkWidget" style "gimp-small-style" # class "GtkWidget" binding "gimp-help-binding"