create tab widgets without border for both the tools and templates views.

2003-10-15  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerview.c
	(gimp_container_view_get_preview): create tab widgets without
	border for both the tools and templates views.

	* app/widgets/gimpviewablebutton.c: removed trailing whitespace.
This commit is contained in:
Michael Natterer 2003-10-15 15:10:20 +00:00 committed by Michael Natterer
parent 4bae069c26
commit 762b709a5e
3 changed files with 19 additions and 10 deletions

View file

@ -1,7 +1,15 @@
2003-10-15 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainerview.c
(gimp_container_view_get_preview): create tab widgets without
border for both the tools and templates views.
* app/widgets/gimpviewablebutton.c: removed trailing whitespace.
2003-10-15 Jakub Steiner <jimmac@ximian.com>
* themes/Default/images/preferences/default-grid.png: nothing fancy doable
here
* themes/Default/images/preferences/default-grid.png: nothing fancy
doable here
2003-10-15 Sven Neumann <sven@gimp.org>

View file

@ -734,20 +734,21 @@ gimp_container_view_get_preview (GimpDocked *docked,
GtkWidget *preview;
gint width;
gint height;
gint border_width = 1;
const gchar *prop_name;
gboolean is_tool;
gtk_icon_size_lookup (size, &width, &height);
prop_name = gimp_context_type_to_prop_name (view->container->children_type);
is_tool = (strcmp (prop_name, "tool") == 0);
if (! strcmp (prop_name, "tool") ||
! strcmp (prop_name, "template"))
border_width = 0;
preview = gimp_prop_preview_new (G_OBJECT (context), prop_name, height);
GIMP_PREVIEW (preview)->renderer->size = -1;
gimp_preview_renderer_set_size_full (GIMP_PREVIEW (preview)->renderer,
width, height,
is_tool ? 0 : 1);
width, height, border_width);
return preview;
}

View file

@ -72,10 +72,10 @@ gimp_viewable_button_get_type (void)
};
button_type = g_type_register_static (GIMP_TYPE_BUTTON,
"GimpViewableButton",
"GimpViewableButton",
&button_info, 0);
}
return button_type;
}
@ -89,7 +89,7 @@ gimp_viewable_button_class_init (GimpViewableButtonClass *klass)
object_class = GTK_OBJECT_CLASS (klass);
widget_class = GTK_WIDGET_CLASS (klass);
button_class = GTK_BUTTON_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
object_class->destroy = gimp_viewable_button_destroy;
@ -142,7 +142,7 @@ gimp_viewable_button_scroll_event (GtkWidget *widget,
gint index;
button = GIMP_VIEWABLE_BUTTON (widget);
object = gimp_context_get_by_type (button->context,
button->container->children_type);