diff --git a/radiant/groupdialog.cpp b/radiant/groupdialog.cpp index 5c85fc24..ac900539 100644 --- a/radiant/groupdialog.cpp +++ b/radiant/groupdialog.cpp @@ -310,7 +310,7 @@ bool UpdateSel( int iIndex, eclass_t *pec ){ GtkWidget* widget = EntWidgets[EntCheck1 + i]; gtk_label_set_text( GTK_LABEL( GTK_BIN( widget )->child ), " " ); gtk_widget_hide( widget ); - gtk_widget_ref( widget ); + g_object_ref( widget ); gtk_container_remove( GTK_CONTAINER( LayoutTable ), widget ); } last_count = spawnflag_count; @@ -328,7 +328,7 @@ bool UpdateSel( int iIndex, eclass_t *pec ){ gtk_table_attach( GTK_TABLE( LayoutTable ), widget, i % 4, i % 4 + 1, i / 4, i / 4 + 1, (GtkAttachOptions) ( GTK_FILL ), (GtkAttachOptions) ( GTK_FILL ), 0, 0 ); - gtk_widget_unref( widget ); + g_object_unref( widget ); gtk_label_set_text( GTK_LABEL( GTK_BIN( widget )->child ), str.GetBuffer() ); } @@ -1334,7 +1334,7 @@ void GroupDlg::Create(){ for ( int i = 0; i < MAX_FLAGS; i++ ) { GtkWidget* check = gtk_check_button_new_with_label( "" ); - gtk_widget_ref( check ); + g_object_ref( check ); g_signal_connect( G_OBJECT( check ), "toggled", G_CALLBACK( entity_check ), NULL ); EntWidgets[EntCheck1 + i] = check; } diff --git a/radiant/gtkmisc.cpp b/radiant/gtkmisc.cpp index d2d37499..f1601522 100644 --- a/radiant/gtkmisc.cpp +++ b/radiant/gtkmisc.cpp @@ -1713,10 +1713,10 @@ void CheckMenuSplitting( GtkWidget *&menu ){ for ( int i = 0; i < 3; i++ ) { item = GTK_WIDGET( g_list_last( gtk_container_get_children( GTK_CONTAINER( menu ) ) )->data ); - gtk_widget_ref( item ); + g_object_ref( item ); gtk_container_remove( GTK_CONTAINER( menu ), item ); gtk_menu_append( GTK_MENU( menu2 ), item ); - gtk_widget_unref( item ); + g_object_unref( item ); } item = gtk_menu_item_new_with_label( "--------" ); diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 2007d224..5a1b5113 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -1086,7 +1086,7 @@ GtkWidget* CGameDialog::GetGlobalFrame(){ AddDialogData( check, &m_bLogConsole, DLG_CHECK_BOOL ); // incref it so we can pass it around - gtk_widget_ref( GTK_WIDGET( mFrame ) ); + g_object_ref( GTK_WIDGET( mFrame ) ); return mFrame; } @@ -1341,7 +1341,7 @@ void CGameDialog::Init(){ CGameDialog::~CGameDialog(){ if ( mFrame ) { // NOTE I'm not too sure how reliable this is - gtk_widget_unref( GTK_WIDGET( mFrame ) ); + g_object_unref( GTK_WIDGET( mFrame ) ); } // free all the game descriptions list::iterator iGame;