~ubuntu-branches/ubuntu/raring/gedit/raring

« back to all changes in this revision

Viewing changes to gedit/gedit-commands-file.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-04-29 10:16:12 UTC
  • mfrom: (1.1.79 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429101612-cawm9u2kja132bpc
Tags: 2.30.2-0ubuntu1
* New upstream release:
  - Fix cut and paste typo that broke syntax detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
        while (docs != NULL)
81
81
        {
82
 
                gchar *u;
83
82
                GeditDocument *d;
 
83
                GFile *l;
84
84
 
85
85
                d = GEDIT_DOCUMENT (docs->data);
86
86
 
87
 
                u = gedit_document_get_uri (d);
88
 
                if (u != NULL)
 
87
                l = gedit_document_get_location (d);
 
88
                if (l != NULL)
89
89
                {
90
 
                        GFile *f;
91
 
 
92
 
                        f = g_file_new_for_uri (u);
93
 
                        g_free (u);
94
 
 
95
 
                        if (g_file_equal (f, file))
 
90
                        if (g_file_equal (l, file))
96
91
                        {
97
92
                                tab = gedit_tab_get_from_document (d);
98
 
                                g_object_unref (f);
 
93
                                g_object_unref (l);
99
94
                                break;
100
95
                        }
101
96
 
102
 
                        g_object_unref (f);
 
97
                        g_object_unref (l);
103
98
                }
104
99
 
105
100
                docs = g_list_next (docs);