summaryrefslogtreecommitdiff
path: root/gtk/gtksocket.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-04 21:58:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-04 21:58:26 +0000
commit1af39383d6131665abcfcad7254e6dc0f01bb1a6 (patch)
tree405451ba440682e16474131927ae0126e1aafe4d /gtk/gtksocket.c
parentb1ac4367f5c50d86ddc8d632c8c29f4bde592f6b (diff)
downloadgtk+-1af39383d6131665abcfcad7254e6dc0f01bb1a6.tar.gz
Don't open/close the file, just check for existence with g_file_test().
Thu Mar 4 16:54:30 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_check_pixmap_dir): Don't open/close the file, just check for existence with g_file_test(). This is considerably cheaper, and lack-of-permissions for pixmap dirs is pathological. Wed Mar 3 17:53:21 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtksocket.c (gtk_socket_class_init): Overide show_all/hide_all to be gtk_widget_show/gtk_widget_hide, since we don't want to propagate to the in-process plug, if any. (#122949, Michael Meeks)
Diffstat (limited to 'gtk/gtksocket.c')
-rw-r--r--gtk/gtksocket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index 3a76cfbe50..3f59ceb4ab 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -191,6 +191,12 @@ gtk_socket_class_init (GtkSocketClass *class)
widget_class->key_press_event = gtk_socket_key_event;
widget_class->key_release_event = gtk_socket_key_event;
widget_class->focus = gtk_socket_focus;
+
+ /* We don't want to show_all/hide_all the in-process
+ * plug, if any.
+ */
+ widget_class->show_all = gtk_widget_show;
+ widget_class->hide_all = gtk_widget_hide;
container_class->remove = gtk_socket_remove;
container_class->forall = gtk_socket_forall;