diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-09-09 16:27:05 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-09 16:27:05 +0800 |
commit | b367752ed56a64c191ee8a4d431293dda52ac579 (patch) | |
tree | be33fb3542233b5f771516f05d393628addd0585 /src | |
parent | ea1fa38ea96a167de2f80b07ebaad54ce36477ec (diff) | |
download | gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar.gz gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar.bz2 gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar.lz gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar.xz gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.tar.zst gsoc2013-epiphany-b367752ed56a64c191ee8a4d431293dda52ac579.zip |
gtk+ now supports invisible event boxes. Remove our custom implementation
2003-09-09 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/Makefile.am:
* lib/widgets/ephy-event-box.c:
* lib/widgets/ephy-event-box.h:
* src/ephy-favicon-action.c: (create_tool_item):
* src/ephy-notebook.c: (build_tab_label):
* src/statusbar.c: (create_statusbar_security_icon):
gtk+ now supports invisible event boxes. Remove our custom implementation
and use gtk+ api instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-favicon-action.c | 5 | ||||
-rw-r--r-- | src/ephy-notebook.c | 16 | ||||
-rwxr-xr-x | src/statusbar.c | 2 |
3 files changed, 18 insertions, 5 deletions
diff --git a/src/ephy-favicon-action.c b/src/ephy-favicon-action.c index 4b8b290fb..1e575fd77 100644 --- a/src/ephy-favicon-action.c +++ b/src/ephy-favicon-action.c @@ -24,12 +24,12 @@ #include "ephy-dnd.h" #include "ephy-favicon-cache.h" #include "ephy-shell.h" -#include "ephy-event-box.h" #include "ephy-debug.h" #include <gtk/gtktoolitem.h> #include <gtk/gtkimage.h> #include <gtk/gtkstock.h> +#include <gtk/gtkeventbox.h> static GtkTargetEntry url_drag_types [] = { @@ -136,7 +136,8 @@ create_tool_item (GtkAction *action) item = GTK_WIDGET (gtk_tool_item_new ()); - ebox = ephy_event_box_new (); + ebox = gtk_event_box_new (); + gtk_event_box_set_visible_window (GTK_EVENT_BOX (ebox), FALSE); image = gtk_image_new (); gtk_container_add (GTK_CONTAINER (ebox), image); gtk_container_set_border_width (GTK_CONTAINER (ebox), 2); diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 620b81d68..1ca616eed 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -34,10 +34,19 @@ #include "ephy-shell.h" #include "ephy-debug.h" #include "ephy-favicon-cache.h" -#include "ephy-event-box.h" -#include <gtk/gtk.h> #include <glib-object.h> +#include <gtk/gtkeventbox.h> +#include <gtk/gtknotebook.h> +#include <gtk/gtkhbox.h> +#include <gtk/gtklabel.h> +#include <gtk/gtkwidget.h> +#include <gtk/gtktooltips.h> +#include <gtk/gtkmain.h> +#include <gtk/gtkstock.h> +#include <gtk/gtkimage.h> +#include <gtk/gtkbutton.h> +#include <gtk/gtkiconfactory.h> #include <bonobo/bonobo-i18n.h> #include <libgnomevfs/gnome-vfs-uri.h> @@ -907,7 +916,8 @@ build_tab_label (EphyNotebook *nb, GtkWidget *child) gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0); /* setup label */ - label_ebox = ephy_event_box_new (); + label_ebox = gtk_event_box_new (); + gtk_event_box_set_visible_window (GTK_EVENT_BOX (label_ebox), FALSE); label = gtk_label_new (""); gtk_misc_set_alignment (GTK_MISC (label), 0.00, 0.5); gtk_misc_set_padding (GTK_MISC (label), 4, 0); diff --git a/src/statusbar.c b/src/statusbar.c index ece07ece7..b2f299a16 100755 --- a/src/statusbar.c +++ b/src/statusbar.c @@ -98,6 +98,8 @@ create_statusbar_security_icon (Statusbar *s) s->priv->security_icon = gtk_image_new (); s->priv->security_evbox = gtk_event_box_new (); + gtk_event_box_set_visible_window (GTK_EVENT_BOX (s->priv->security_evbox), + FALSE); gtk_container_add (GTK_CONTAINER (security_frame), GTK_WIDGET (s->priv->security_evbox)); gtk_container_add (GTK_CONTAINER (s->priv->security_evbox), |