~larsu/nautilus/lp1290067

« back to all changes in this revision

Viewing changes to debian/patches/git_valid_location_widget.patch

  • Committer: Sebastien Bacher
  • Date: 2014-02-10 15:52:45 UTC
  • Revision ID: seb128@ubuntu.com-20140210155245-rczjr1vc011xp8y2
* debian/patches/git_valid_location_widget.patch:
  - should fix some segfaults (lp: #1278481)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 67ba854074ac48ec142bdf3b9848cb8d94070f82 Mon Sep 17 00:00:00 2001
 
2
From: Michael Cronenworth <mike@cchtml.com>
 
3
Date: Thu, 23 Jan 2014 21:47:55 +0000
 
4
Subject: nautilus-window: Check for valid location entry widget
 
5
 
 
6
https://bugzilla.gnome.org/show_bug.cgi?id=722616
 
7
---
 
8
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
 
9
index b3c3386..67b5899 100644
 
10
--- a/src/nautilus-window.c
 
11
+++ b/src/nautilus-window.c
 
12
@@ -1032,7 +1032,9 @@ nautilus_window_sync_location_widgets (NautilusWindow *window)
 
13
                GtkWidget *path_bar;
 
14
 
 
15
                location_entry = nautilus_toolbar_get_location_entry (NAUTILUS_TOOLBAR (window->details->toolbar));
 
16
-               nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), location);
 
17
+               if (location_entry != NULL && GTK_IS_WIDGET (location_entry)) {
 
18
+                       nautilus_location_entry_set_location (NAUTILUS_LOCATION_ENTRY (location_entry), location);
 
19
+               }
 
20
 
 
21
                path_bar = nautilus_toolbar_get_path_bar (NAUTILUS_TOOLBAR (window->details->toolbar));
 
22
                nautilus_path_bar_set_path (NAUTILUS_PATH_BAR (path_bar), location);
 
23
--
 
24
cgit v0.9.2
 
25