add a shadow to the scrolled window, so it looks nicer

2001-12-30  Manish Singh  <yosh@gimp.org>

        * app/gui/module-browser.c: add a shadow to the scrolled window, so
        it looks nicer

        * libgimpwidgets/gimpbutton.c: try to restore gtk_widget_draw behavior

        * libgimpwidgets/gimpoffsetarea.c
        * libgimpwidgets/gimppixmap.[ch]: compile with GTK_DISABLE_DEPRECATED

-Yosh
This commit is contained in:
Manish Singh 2001-12-31 01:59:46 +00:00 committed by Manish Singh
parent 35100afb7a
commit f4d59f28c8
7 changed files with 22 additions and 8 deletions

View File

@ -1,3 +1,13 @@
2001-12-30 Manish Singh <yosh@gimp.org>
* app/gui/module-browser.c: add a shadow to the scrolled window, so
it looks nicer
* libgimpwidgets/gimpbutton.c: try to restore gtk_widget_draw behavior
* libgimpwidgets/gimpoffsetarea.c
* libgimpwidgets/gimppixmap.[ch]: compile with GTK_DISABLE_DEPRECATED
2001-12-31 Sven Neumann <sven@gimp.org>
* libgimpcolor/Makefile.am

View File

@ -122,6 +122,8 @@ module_browser_new (Gimp *gimp)
gtk_widget_show (vbox);
listbox = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (listbox),
GTK_SHADOW_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (listbox),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);

View File

@ -122,6 +122,8 @@ module_browser_new (Gimp *gimp)
gtk_widget_show (vbox);
listbox = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (listbox),
GTK_SHADOW_IN);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (listbox),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);

View File

@ -212,6 +212,7 @@ gimp_button_button_release (GtkWidget *widget,
gtk_widget_set_state (widget, GTK_STATE_PRELIGHT);
gtk_widget_queue_draw (widget);
gdk_window_process_updates (widget->window, TRUE);
}
return TRUE;

View File

@ -276,7 +276,7 @@ gimp_offset_area_resize (GimpOffsetArea *offset_area)
width = ratio * (gdouble) width;
height = ratio * (gdouble) height;
gtk_drawing_area_size (GTK_DRAWING_AREA (offset_area), width, height);
gtk_widget_set_size_request (GTK_WIDGET (offset_area), width, height);
}
static gboolean

View File

@ -36,7 +36,7 @@ static void gimp_pixmap_realize (GtkWidget *widget);
static void gimp_pixmap_create_from_xpm_d (GimpPixmap *pixmap);
static GtkPixmapClass *parent_class = NULL;
static GtkImageClass *parent_class = NULL;
GType
@ -59,7 +59,7 @@ gimp_pixmap_get_type (void)
(GInstanceInitFunc) gimp_pixmap_init,
};
pixmap_type = g_type_register_static (GTK_TYPE_PIXMAP,
pixmap_type = g_type_register_static (GTK_TYPE_IMAGE,
"GimpPixmap",
&pixmap_info, 0);
}
@ -100,7 +100,6 @@ gimp_pixmap_new (gchar **xpm_data)
pixmap = g_object_new (GIMP_TYPE_PIXMAP, NULL);
gtk_pixmap_set_build_insensitive (GTK_PIXMAP (pixmap), TRUE);
gimp_pixmap_set (pixmap, xpm_data);
return GTK_WIDGET (pixmap);
@ -179,7 +178,7 @@ gimp_pixmap_create_from_xpm_d (GimpPixmap *pixmap)
pixmap->xpm_data);
}
gtk_pixmap_set (GTK_PIXMAP (pixmap), gdk_pixmap, mask);
gtk_image_set_from_pixmap (GTK_IMAGE (pixmap), gdk_pixmap, mask);
if (gdk_pixmap)
g_object_unref (gdk_pixmap);

View File

@ -53,14 +53,14 @@ typedef struct _GimpPixmapClass GimpPixmapClass;
struct _GimpPixmap
{
GtkPixmap parent_instance;
GtkImage parent_instance;
gchar **xpm_data;
gchar **xpm_data;
};
struct _GimpPixmapClass
{
GtkPixmapClass parent_class;
GtkImageClass parent_class;
};