~ubuntu-branches/ubuntu/quantal/glade-3/quantal

« back to all changes in this revision

Viewing changes to gladeui/glade-base-editor.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-01-07 09:21:48 UTC
  • mfrom: (1.2.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20110107092148-4p1qi7ep7jqixoas
Tags: 3.7.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
        const gchar *text = gtk_entry_get_text (GTK_ENTRY (entry));
354
354
        GladeBaseEditor *editor = g_object_get_data (G_OBJECT (entry), "editor");
355
355
 
356
 
        if (strcmp (glade_widget_get_name (gchild), text))
 
356
        if (text && text[0] && strcmp (glade_widget_get_name (gchild), text))
357
357
        {
358
358
                g_signal_handlers_block_by_func (gchild->project,
359
359
                                                 glade_base_editor_project_widget_name_changed,
1872
1872
        gchar *name;
1873
1873
        va_list args;
1874
1874
 
1875
 
        g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
1876
 
 
1877
1875
        gcontainer = glade_widget_get_from_gobject (container);
1878
 
        g_return_val_if_fail (GLADE_IS_WIDGET (gcontainer), NULL);
1879
 
 
1880
1876
        
1881
1877
        editor = GLADE_BASE_EDITOR (g_object_new (GLADE_TYPE_BASE_EDITOR, NULL));
1882
1878
        e = editor->priv;