gtk_widget_ref/gtk_widget_unref -> g_object_ref/g_object_unref

This commit is contained in:
Garux
2020-05-21 14:16:41 +03:00
parent e8998ab4a8
commit 70cf8c4bdd
9 changed files with 16 additions and 16 deletions

View File

@@ -187,7 +187,7 @@ GtkWidget* g_shared = 0;
gint glwidget_context_created( GtkWidget* widget, gpointer data ){
if ( ++g_context_count == 1 ) {
g_shared = widget;
gtk_widget_ref( g_shared );
g_object_ref( G_OBJECT( g_shared ) );
glwidget_make_current( g_shared );
GlobalOpenGL().contextValid = true;
@@ -203,7 +203,7 @@ gint glwidget_context_destroyed( GtkWidget* widget, gpointer data ){
GLWidget_sharedContextDestroyed();
gtk_widget_unref( g_shared );
g_object_unref( G_OBJECT( g_shared ) );
g_shared = 0;
}
return FALSE;