aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-09-18 03:36:42 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-09-18 03:36:42 +0800
commit9b6c32ad6635ca8950a576f8e3be53e53cae1dbf (patch)
treecb9690b32b863fd507b2f0ad22b36ffe8233ab84 /widgets
parent025b5a3e0d9307086abb8572f89b64494fc5d2e8 (diff)
downloadgsoc2013-evolution-9b6c32ad6635ca8950a576f8e3be53e53cae1dbf.tar.gz
gsoc2013-evolution-9b6c32ad6635ca8950a576f8e3be53e53cae1dbf.tar.zst
gsoc2013-evolution-9b6c32ad6635ca8950a576f8e3be53e53cae1dbf.zip
Remove e_create_image_widget function
2000-09-17 JP Rosevear <jpr@helixcode.com> * src/widgets/e-gui-utils.c: Remove e_create_image_widget function * src/widgets/e-canvas-vbox.c: Fix headers svn path=/trunk/; revision=5479
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-canvas-vbox.c6
-rw-r--r--widgets/misc/e-gui-utils.c46
-rw-r--r--widgets/misc/e-gui-utils.h1
3 files changed, 3 insertions, 50 deletions
diff --git a/widgets/misc/e-canvas-vbox.c b/widgets/misc/e-canvas-vbox.c
index 2d389a83e6..dd08665fa2 100644
--- a/widgets/misc/e-canvas-vbox.c
+++ b/widgets/misc/e-canvas-vbox.c
@@ -24,9 +24,9 @@
#include <gnome.h>
#include <math.h>
#include "e-canvas-vbox.h"
-#include <e-util/e-canvas-utils.h>
-#include <e-util/e-canvas.h>
-#include <e-util/e-util.h>
+#include "e-canvas-utils.h"
+#include "e-canvas.h"
+#include "util/e-util.h"
static void e_canvas_vbox_init (ECanvasVbox *CanvasVbox);
static void e_canvas_vbox_class_init (ECanvasVboxClass *klass);
diff --git a/widgets/misc/e-gui-utils.c b/widgets/misc/e-gui-utils.c
index 2e31eb101b..cde82d9f78 100644
--- a/widgets/misc/e-gui-utils.c
+++ b/widgets/misc/e-gui-utils.c
@@ -65,52 +65,6 @@ e_popup_menu (GtkMenu *menu, GdkEventButton *event)
gtk_menu_popup (menu, NULL, NULL, 0, NULL, event->button, event->time);
}
-GtkWidget *e_create_image_widget(gchar *name,
- gchar *string1, gchar *string2,
- gint int1, gint int2)
-{
- char *filename;
- GdkPixbuf *pixbuf;
- double width, height;
- GtkWidget *canvas, *alignment;
- if (string1) {
- if (*string1 == '/')
- filename = g_strdup(string1);
- else
- filename = g_concat_dir_and_file(EVOLUTION_IMAGES, string1);
- pixbuf = gdk_pixbuf_new_from_file(filename);
- width = gdk_pixbuf_get_width(pixbuf);
- height = gdk_pixbuf_get_height(pixbuf);
-
- canvas = gnome_canvas_new_aa();
- GTK_OBJECT_UNSET_FLAGS(GTK_WIDGET(canvas), GTK_CAN_FOCUS);
- gnome_canvas_item_new(gnome_canvas_root(GNOME_CANVAS(canvas)),
- gnome_canvas_pixbuf_get_type(),
-
- "pixbuf", pixbuf,
- NULL);
-
- alignment = gtk_widget_new(gtk_alignment_get_type(),
- "child", canvas,
- "xalign", (double) 0,
- "yalign", (double) 0,
- "xscale", (double) 0,
- "yscale", (double) 0,
- NULL);
-
- gtk_widget_set_usize(canvas, width, height);
-
- gdk_pixbuf_unref(pixbuf);
-
- gtk_widget_show(canvas);
- gtk_widget_show(alignment);
- g_free(filename);
-
- return alignment;
- } else
- return NULL;
-}
-
typedef struct {
GtkCallback callback;
gpointer closure;
diff --git a/widgets/misc/e-gui-utils.h b/widgets/misc/e-gui-utils.h
index 1d47a7b514..a5a5eb994f 100644
--- a/widgets/misc/e-gui-utils.h
+++ b/widgets/misc/e-gui-utils.h
@@ -9,7 +9,6 @@
void e_popup_menu (GtkMenu *menu, GdkEventButton *event);
void e_auto_kill_popup_menu_on_hide (GtkMenu *menu);
void e_notice (GtkWindow *window, const char *type, const char *format, ...);
-GtkWidget *e_create_image_widget (gchar *name, gchar *string1, gchar *string2, gint int1, gint int2);
void e_container_foreach_leaf (GtkContainer *container,
GtkCallback callback,
gpointer closure);
he new options frameworkpgj2012-08-035-5/+9 * Update to 4.2.1wxs2012-08-034-50/+6 * - Fix typos in COMMENTcs2012-08-021-1/+1 * Update to 2.2.5.delphij2012-08-012-6/+5 * . Apply ACL endless loop patch from upstream (already ported to FreeBSD-CURRENT)glewis2012-08-012-4/+23 * Fix typos in COMMENTcs2012-07-291-1/+1 * Replace USE_GCC=4.4+ by USE_GCC=4.6+ since GCC 4.4 is on its way outgerald2012-07-271-1/+1 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-262-3/+2 * Fix typos in COMMENTcs2012-07-256-6/+6 * Update to 5.4.5.delphij2012-07-241-1/+0 * Fix typos in COMMENTcs2012-07-233-3/+3 * For ports maintained by ports@ where pkgconfig is one of the USE_GNOME depsdougb2012-07-231-1/+2 * Remove archivers/zlib in favor of base system bundled version.delphij2012-07-194-50/+0 * Update to 1.26ehaupt2012-07-183-17/+15 * Fix missing newline at end of filezeising2012-07-181-1/+1 * - Avoid warning of update-desktop-database command, when we deleteolivierd2012-07-182-17/+19 * - Update to 0.0932sunpoet2012-07-133-10/+14 * Fixed bug #55544 (ob_gzhandler always conflicts withale2012-07-092-0/+11 * Update to 1.2.7 to fix build with clang.zeising2012-07-092-4/+4 * Add USE_CSTD=gnu89 to fix linking when building with clangpawel2012-07-061-0/+1 * Move to OPTIONSnggarga2012-07-031-5/+7 * - set MAINTAINER ro ruby@dinoex2012-06-291-1/+1 * - reset MAINTAINERdinoex2012-06-262-2/+2 * Update to 5.4.4 release and switch to OptionsNG.ale2012-06-192-19/+0 * Fix build on FreeBSD 7.xjohans2012-06-181-8/+8 * - Update rpm to 4.10johans2012-06-164-29/+131 * - Switch to OptionsNgmartymac2012-06-151-4/+6 * Switch to OptionsNgmartymac2012-06-151-1/+3 * KDE/FreeBSD team presents KDE SC 4.8.4, probably the last release in 4.8.x se...makc2012-06-151-2/+2 * Register CONFLICTSehaupt2012-06-111-0/+3 * - Convert all remaining instances of BUILD_DEPENDS=${RUN_DEPENDS} orswills2012-06-113-3/+3 * - Update to 1.5.5miwi2012-06-102-44/+15 * - Fix build for php54miwi2012-06-092-2/+12 * - update to 1.4dinoex2012-06-093-11/+19 * Convert my ports to optionsNGpawel2012-06-082-2/+4 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1 * - Update MASTER_SITESsylvio2012-06-062-6/+11 * - Remove SITE_PERL from *_DEPENDSaz2012-06-061-1/+1 * - Remove SITE_PERL from *_DEPENDSjadawin2012-06-051-1/+1 * - Update to 1.88jadawin2012-06-052-6/+9 * - Convert to optionNGmiwi2012-06-041-2/+5 * - Update to 0.2.2.1pgj2012-06-043-6/+7 * - Update to 0.1.0.1pgj2012-06-043-4/+5 * - Update to 0.5.3.3pgj2012-06-043-11/+12 * - Update to 0.1.1.8pgj2012-06-043-8/+7 * - Update to 0.4.0.0pgj2012-06-042-3/+3 * - Update The Glorious Glasgow Haskell Compiler to version 7.4.1pgj2012-06-041-0/+1 * Streaming compression/decompression via conduits.pgj2012-06-043-0/+24 * - add CONFLICTSdinoex2012-06-032-0/+4 * Set maintainership back to ports@cs2012-06-031-1/+1 * Fix integer overflow.ale2012-06-022-0/+19 * Correct previous commit: now use the real patch,johans2012-06-011-34/+30 * - update png to 1.5.10dinoex2012-06-019-8/+9 * Add patch to fix compilation on CURRENT (10.x)johans2012-06-011-0/+34 * Update my email address.tj2012-06-012-2/+2 * - Fix sanity checkmiwi2012-05-311-1/+1 * - Convert complete XFCE to new options frameworkmiwi2012-05-311-3/+3 * - Welcome XFCE 4.10 to the portstree!miwi2012-05-262-5/+8 * - Update to 1.86jadawin2012-05-252-3/+3 * KDE/FreeBSD team presents long awaited KDE SC 4.8.3!makc2012-05-255-331/+23 * - Respect Prefixmiwi2012-05-211-4/+5 * Remove pecl-bz2, since it's included in all supported php releases.ale2012-05-204-32/+0 * Mark IGNORE with php 5.4 and set 5.3 as default.ale2012-05-203-1/+6 * readd php 5.3.13 and all its modules as php53*flo2012-05-168-0/+122 * Update to 1.0.7mm2012-05-162-3/+3 * zlib is designed to be a free, general-purpose, legally unencumbered -- that is,miwi2012-05-164-0/+49 * - Pass maintainership to submittertabthorpe2012-05-162-2/+2 * - Fix patch for unrar 4.20 Beta 1sunpoet2012-05-151-9/+9 * - Update to 4.20 Beta 1sunpoet2012-05-152-5/+4 * Respect STRIP (eg. if WITH_DEBUG is defined)ehaupt2012-05-151-0/+1 * - Respect STRIPsunpoet2012-05-151-0/+1 * 2012-05-10 archivers/php4-bz2: php4 is EOLedbapt2012-05-126-74/+0 * - Update to 2.054sunpoet2012-05-094-20/+4 * - Update to 1.13sylvio2012-05-082-6/+5 * Pass maintainership of almost of my "p5-*" ports to "perl@".skv2012-05-072-2/+2 * - Update to 2.053sunpoet2012-05-072-3/+3 * - Assign clsung's p5- ports to perl@swills2012-05-015-5/+5 * - Update to 2.052sunpoet2012-04-302-5/+5 * - Update to 2.052sunpoet2012-04-302-7/+7 * - Update to 2.052sunpoet2012-04-302-5/+5 * - Update to 2.052sunpoet2012-04-302-7/+7 * - Update to 2.052sunpoet2012-04-302-3/+3 * - Update to 2.052sunpoet2012-04-302-3/+3 * - Update to 2.052sunpoet2012-04-302-3/+3 * - Add OPTIONS OPENSSL_AES: use OpenSSL implementation of AES instead of bundledsunpoet2012-04-254-1/+127 * update zpsfx to 1.01bf2012-04-223-6/+46 * - Add p5-Compress-Snappy 0.18sunpoet2012-04-195-0/+48 * Set the expiration date for all ports which depend upon linux_base-fc4 tonetchild2012-04-152-0/+4 * php4 is EOLed, let's deprecate itbapt2012-04-123-0/+9 * . Update to 3.0.4.glewis2012-04-092-4/+4 * - Update to version 1.15.8.12 (squeeze stable branch)pawel2012-04-0710-404/+375 * Update rpm4 to 4.9.1.3johans2012-04-062-4/+3 * Update to bugfix release 0.10.1:makc2012-04-032-3/+3 * update zpaq to v4.04bf2012-03-312-4/+4 * Update to 2.2.4, which also fixes a possible DoS issue.delphij2012-03-162-3/+3 * Upgrade to 1.0.5.vanilla2012-03-153-3/+4 * - Revert ports/165605 as requested by portmgr@pgollucci2012-03-14