[gedit/gnome-3-2] Remove show_all from view_new
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-2] Remove show_all from view_new
- Date: Fri, 2 Dec 2011 20:51:24 +0000 (UTC)
commit c808961c1958757e2c96a7c622c6bd4d8e1c1440
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Nov 27 11:32:27 2011 +0100
Remove show_all from view_new
It does not belong there and the caller already takes care of showing
the view once created.
gedit/gedit-view.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index f77ba2a..eec3473 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -860,19 +860,9 @@ gedit_view_class_init (GeditViewClass *klass)
GtkWidget *
gedit_view_new (GeditDocument *doc)
{
- GtkWidget *view;
-
- gedit_debug_message (DEBUG_VIEW, "START");
-
g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL);
- view = GTK_WIDGET (g_object_new (GEDIT_TYPE_VIEW, "buffer", doc, NULL));
-
- gedit_debug_message (DEBUG_VIEW, "END: %d", G_OBJECT (view)->ref_count);
-
- gtk_widget_show_all (view);
-
- return view;
+ return GTK_WIDGET (g_object_new (GEDIT_TYPE_VIEW, "buffer", doc, NULL));
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]