[nautilus] Don't grab focus on realize
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Don't grab focus on realize
- Date: Thu, 17 Dec 2009 15:33:44 +0000 (UTC)
commit 4efd42312584b46f248e2839582a87776a7baebe
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 17 16:31:08 2009 +0100
Don't grab focus on realize
This causes problems when opening up an extra view as it forces it
to become focused which is not what we want.
libnautilus-private/nautilus-icon-container.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 03af3a9..ae58a49 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4131,7 +4131,6 @@ size_allocate (GtkWidget *widget,
static void
realize (GtkWidget *widget)
{
- GtkWindow *window;
GdkBitmap *stipple;
GtkAdjustment *vadj, *hadj;
NautilusIconContainer *container;
@@ -4151,11 +4150,6 @@ realize (GtkWidget *widget)
setup_label_gcs (container);
- /* make us the focused widget */
- g_assert (GTK_IS_WINDOW (gtk_widget_get_toplevel (widget)));
- window = GTK_WINDOW (gtk_widget_get_toplevel (widget));
- gtk_window_set_focus (window, widget);
-
stipple = eel_stipple_bitmap_for_screen (
gdk_drawable_get_screen (GDK_DRAWABLE (widget->window)));
@@ -4175,15 +4169,10 @@ static void
unrealize (GtkWidget *widget)
{
int i;
- GtkWindow *window;
NautilusIconContainer *container;
container = NAUTILUS_ICON_CONTAINER (widget);
- g_assert (GTK_IS_WINDOW (gtk_widget_get_toplevel (widget)));
- window = GTK_WINDOW (gtk_widget_get_toplevel (widget));
- gtk_window_set_focus (window, NULL);
-
for (i = 0; i < LAST_LABEL_COLOR; i++) {
if (container->details->label_gcs [i]) {
g_object_unref (container->details->label_gcs [i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]