Removed condition which was always true
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 27 Nov 2008 06:13:54 +0000 (15:13 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 27 Nov 2008 06:13:54 +0000 (15:13 +0900)
lib/gtksheet/gtksheet.c

index 3bb6bcab36270e023070f8a5d2958c7f0139e425..feeeaafa920e16aa55847487b5f7ad12ed84432b 100644 (file)
@@ -4568,15 +4568,8 @@ create_sheet_entry (GtkSheet *sheet)
       gtk_widget_unparent (sheet->entry_widget);
     }
 
-  if (sheet->entry_type)
-    {
-      sheet->entry_widget = g_object_new (sheet->entry_type, NULL);
-      g_object_ref_sink (sheet->entry_widget);
-    }
-  else
-    {
-      sheet->entry_widget = gtk_entry_new ();
-    }
+  sheet->entry_widget = g_object_new (sheet->entry_type, NULL);
+  g_object_ref_sink (sheet->entry_widget);
 
   gtk_widget_size_request (sheet->entry_widget, NULL);