aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar.c
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2003-03-12 05:22:14 +0800
committerRodney Dawes <dobey@src.gnome.org>2003-03-12 05:22:14 +0800
commitc6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee (patch)
treea045daac7a166e28b3354303ea4fc08f4a4ce5f6 /widgets/misc/e-calendar.c
parent179239f0e51b4ae7470482d1053378aad981eb7a (diff)
downloadgsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.gz
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.bz2
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.lz
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.xz
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.zst
gsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.zip
Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmaps
2003-03-10 Rodney Dawes <dobey@ximian.com> * e-calendar.c: Use GtkArrow instead of pixmaps * e-combo-button.c: Use GtkArrow instead of pixmaps * e-filter-bar.c: gtk_window_set_policy () is deprecated * e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap svn path=/trunk/; revision=20254
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r--widgets/misc/e-calendar.c47
1 files changed, 2 insertions, 45 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c
index dce0e05771..0275679f1f 100644
--- a/widgets/misc/e-calendar.c
+++ b/widgets/misc/e-calendar.c
@@ -67,35 +67,6 @@
#define E_CALENDAR_AUTO_MOVE_TIMEOUT 150
#define E_CALENDAR_AUTO_MOVE_TIMEOUT_DELAY 2
-static char * left_arrow_xpm[] = {
- "7 7 3 1",
- " c None",
- ". c #949594",
- "+ c #000000",
- " .+",
- " .+++",
- " .+++++",
- "+++++++",
- " .+++++",
- " .+++",
- " .+"
-};
-
-static char * right_arrow_xpm[] = {
- "7 7 3 1",
- " c None",
- ". c #949594",
- "+ c #000000",
- "+. ",
- "+++. ",
- "+++++. ",
- "+++++++",
- "+++++. ",
- "+++. ",
- "+. "
-};
-
-
static void e_calendar_class_init (ECalendarClass *class);
static void e_calendar_init (ECalendar *cal);
static void e_calendar_destroy (GtkObject *object);
@@ -162,9 +133,6 @@ e_calendar_init (ECalendar *cal)
GdkFont *small_font;
PangoFontDescription *small_font_desc;
GtkWidget *button, *pixmap;
- GdkColormap *colormap;
- GdkPixmap *gdk_pixmap;
- GdkBitmap *gdk_mask;
GTK_WIDGET_UNSET_FLAGS (cal, GTK_CAN_FOCUS);
@@ -205,14 +173,8 @@ e_calendar_init (ECalendar *cal)
G_CALLBACK (e_calendar_on_prev_released),
GTK_OBJECT (cal));
- colormap = gtk_widget_get_colormap (GTK_WIDGET (cal));
- gdk_pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap,
- &gdk_mask, NULL,
- left_arrow_xpm);
- pixmap = gtk_pixmap_new (gdk_pixmap, gdk_mask);
+ pixmap = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
gtk_widget_show (pixmap);
- gdk_pixmap_unref (gdk_pixmap);
- g_object_unref (gdk_mask);
gtk_container_add (GTK_CONTAINER (button), pixmap);
cal->prev_item = gnome_canvas_item_new (canvas_group,
@@ -231,13 +193,8 @@ e_calendar_init (ECalendar *cal)
G_CALLBACK (e_calendar_on_next_released),
GTK_OBJECT (cal));
- gdk_pixmap = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap,
- &gdk_mask, NULL,
- right_arrow_xpm);
- pixmap = gtk_pixmap_new (gdk_pixmap, gdk_mask);
+ pixmap = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
gtk_widget_show (pixmap);
- gdk_pixmap_unref (gdk_pixmap);
- g_object_unref (gdk_mask);
gtk_container_add (GTK_CONTAINER (button), pixmap);
cal->next_item = gnome_canvas_item_new (canvas_group,