aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-combo-button.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-combo-button.c
parent179239f0e51b4ae7470482d1053378aad981eb7a (diff)
downloadgsoc2013-evolution-c6a1e23298bcca3ac4f4c1fdb4cdcc297ee424ee.tar.gz
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-combo-button.c')
-rw-r--r--widgets/misc/e-combo-button.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/widgets/misc/e-combo-button.c b/widgets/misc/e-combo-button.c
index 0929d0bbd5..09a8aba46f 100644
--- a/widgets/misc/e-combo-button.c
+++ b/widgets/misc/e-combo-button.c
@@ -51,17 +51,6 @@ struct _EComboButtonPrivate {
#define SPACING 2
-static const char *arrow_xpm[] = {
- "11 5 2 1",
- " c none",
- ". c #000000000000",
- " ......... ",
- " ....... ",
- " ..... ",
- " ... ",
- " . ",
-};
-
#define PARENT_TYPE gtk_button_get_type ()
static GtkButtonClass *parent_class = NULL;
@@ -108,21 +97,6 @@ create_empty_pixmap_widget (void)
return pixmap_widget;
}
-static GtkWidget *
-create_arrow_pixmap_widget (void)
-{
- GtkWidget *pixmap_widget;
- GdkPixbuf *pixbuf;
-
- pixbuf = gdk_pixbuf_new_from_xpm_data (arrow_xpm);
-
- pixmap_widget = create_pixmap_widget_from_pixbuf (pixbuf);
-
- g_object_unref (pixbuf);
-
- return pixmap_widget;
-}
-
static void
set_icon (EComboButton *combo_button,
GdkPixbuf *pixbuf)
@@ -453,7 +427,7 @@ init (EComboButton *combo_button)
2 * GTK_WIDGET (combo_button)->style->xthickness);
gtk_widget_show (priv->label);
- priv->arrow_pixmap = create_arrow_pixmap_widget ();
+ priv->arrow_pixmap = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
gtk_box_pack_start (GTK_BOX (priv->hbox), priv->arrow_pixmap, TRUE, TRUE,
GTK_WIDGET (combo_button)->style->xthickness);
gtk_widget_show (priv->arrow_pixmap);