diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-15 16:41:40 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-06-15 16:41:40 +0800 |
commit | 2248b0052a671be1f4bd85fcb9f5e3d12c0e2237 (patch) | |
tree | b5d021b382ccb74392d2875e830f81af1464e131 | |
parent | 2763090eb3996ce690062bf465b1a29572a3ce8c (diff) | |
download | gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar.gz gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar.bz2 gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar.lz gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar.xz gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.tar.zst gsoc2013-evolution-2248b0052a671be1f4bd85fcb9f5e3d12c0e2237.zip |
** Fix for bug #446870
svn path=/trunk/; revision=33674
-rw-r--r-- | e-util/ChangeLog | 8 | ||||
-rw-r--r-- | e-util/e-gui-utils.c | 26 | ||||
-rw-r--r-- | e-util/e-gui-utils.h | 1 |
3 files changed, 35 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 42a00c3c98..fc5751421a 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,11 @@ +2007-06-15 Srinivasa Ragavan <sragavan@novell.com> + + ** Fix for bug #446870 + + * e-gui-utils.c: (e_create_image_widget): Add this function back. It + is used in glade files. + * e-gui-utils.h: + 2007-06-02 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #438467 (Patch from Gilles Dartiguelongue) diff --git a/e-util/e-gui-utils.c b/e-util/e-gui-utils.c index 875dc91ad9..b206b24d01 100644 --- a/e-util/e-gui-utils.c +++ b/e-util/e-gui-utils.c @@ -61,3 +61,29 @@ e_icon_for_mime_type (const char *mime_type, int size_hint) return pixbuf; } + +GtkWidget *e_create_image_widget(gchar *name, + gchar *string1, gchar *string2, + gint int1, gint int2) +{ + GtkWidget *alignment = NULL; + GtkWidget *w; + + if (string1) { + w = e_icon_factory_get_image (string1, E_ICON_SIZE_DIALOG); + + gtk_misc_set_alignment (GTK_MISC (w), 0.5, 0.5); + + alignment = gtk_widget_new(gtk_alignment_get_type(), + "child", w, + "xalign", (double) 0, + "yalign", (double) 0, + "xscale", (double) 0, + "yscale", (double) 0, + NULL); + + gtk_widget_show_all (alignment); + } + + return alignment; +} diff --git a/e-util/e-gui-utils.h b/e-util/e-gui-utils.h index de219e8bc4..678ab1bcd8 100644 --- a/e-util/e-gui-utils.h +++ b/e-util/e-gui-utils.h @@ -4,5 +4,6 @@ #include <gtk/gtkwidget.h> GdkPixbuf *e_icon_for_mime_type (const char *mime_type, int size); +GtkWidget *e_create_image_widget (gchar *name, gchar *string1, gchar *string2, gint int1, gint int2); #endif /* E_GUI_UTILS_H */ |