Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 3b14cca451af830bae608fc0e25078280ce6423e 1 parent 5ada77d
Colomban Wendling b4n authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 plugins/splitwindow.c
8 plugins/splitwindow.c
@@ -308,14 +308,14 @@ static void split_view(gboolean horizontal)
308 308
309 309 set_state(horizontal ? STATE_SPLIT_HORIZONTAL : STATE_SPLIT_VERTICAL);
310 310
311   - gtk_widget_ref(notebook);
  311 + g_object_ref(notebook);
312 312 gtk_container_remove(GTK_CONTAINER(parent), notebook);
313 313
314 314 pane = horizontal ? gtk_hpaned_new() : gtk_vpaned_new();
315 315 gtk_container_add(GTK_CONTAINER(parent), pane);
316 316
317 317 gtk_container_add(GTK_CONTAINER(pane), notebook);
318   - gtk_widget_unref(notebook);
  318 + g_object_unref(notebook);
319 319
320 320 box = gtk_vbox_new(FALSE, 0);
321 321 toolbar = create_toolbar();
@@ -359,7 +359,7 @@ static void on_unsplit(GtkMenuItem *menuitem, gpointer user_data)
359 359
360 360 g_return_if_fail(edit_window.editor);
361 361
362   - gtk_widget_ref(notebook);
  362 + g_object_ref(notebook);
363 363 gtk_container_remove(GTK_CONTAINER(pane), notebook);
364 364
365 365 gtk_widget_destroy(pane);
@@ -367,7 +367,7 @@ static void on_unsplit(GtkMenuItem *menuitem, gpointer user_data)
367 367 edit_window.sci = NULL;
368 368
369 369 gtk_container_add(GTK_CONTAINER(parent), notebook);
370   - gtk_widget_unref(notebook);
  370 + g_object_unref(notebook);
371 371 }
372 372
373 373

0 comments on commit 3b14cca

Please sign in to comment.
Something went wrong with that request. Please try again.