[geany/geany] 3b14cc: Don't use long-deprecated gtk_widget_{ref, unref}()

Colomban Wendling git-noreply at xxxxx
Thu Sep 13 14:34:18 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Thu, 13 Sep 2012 14:34:18
Commit:      3b14cca451af830bae608fc0e25078280ce6423e
             https://github.com/geany/geany/commit/3b14cca451af830bae608fc0e25078280ce6423e

Log Message:
-----------
Don't use long-deprecated gtk_widget_{ref,unref}()


Modified Paths:
--------------
    plugins/splitwindow.c

Modified: plugins/splitwindow.c
8 files changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -308,14 +308,14 @@ static void split_view(gboolean horizontal)
 
 	set_state(horizontal ? STATE_SPLIT_HORIZONTAL : STATE_SPLIT_VERTICAL);
 
-	gtk_widget_ref(notebook);
+	g_object_ref(notebook);
 	gtk_container_remove(GTK_CONTAINER(parent), notebook);
 
 	pane = horizontal ? gtk_hpaned_new() : gtk_vpaned_new();
 	gtk_container_add(GTK_CONTAINER(parent), pane);
 
 	gtk_container_add(GTK_CONTAINER(pane), notebook);
-	gtk_widget_unref(notebook);
+	g_object_unref(notebook);
 
 	box = gtk_vbox_new(FALSE, 0);
 	toolbar = create_toolbar();
@@ -359,7 +359,7 @@ static void on_unsplit(GtkMenuItem *menuitem, gpointer user_data)
 
 	g_return_if_fail(edit_window.editor);
 
-	gtk_widget_ref(notebook);
+	g_object_ref(notebook);
 	gtk_container_remove(GTK_CONTAINER(pane), notebook);
 
 	gtk_widget_destroy(pane);
@@ -367,7 +367,7 @@ static void on_unsplit(GtkMenuItem *menuitem, gpointer user_data)
 	edit_window.sci = NULL;
 
 	gtk_container_add(GTK_CONTAINER(parent), notebook);
-	gtk_widget_unref(notebook);
+	g_object_unref(notebook);
 }
 
 


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list