]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/entitylist.cpp
Remove <gtk/gtk.h> from most of radiant/*
[xonotic/netradiant.git] / radiant / entitylist.cpp
index a9b9a6681b0b918b5838fd3f53bf2d14ee409109..13be0988f32b4b2dccbf5b59d5bfbcf67f665bc3 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "iselection.h"
 
-#include <gtk/gtk.h>
 #include <uilib/uilib.h>
 
 #include "string/string.h"
@@ -245,7 +244,7 @@ void entitylist_treeview_row_expanded( GtkTreeView* view, GtkTreeIter* iter, Gtk
 
 
 void EntityList_SetShown( bool shown ){
-       widget_set_visible( GTK_WIDGET( getEntityList().m_window ), shown );
+       widget_set_visible( getEntityList().m_window, shown );
 }
 
 void EntityList_toggleShown(){
@@ -285,7 +284,7 @@ void EntityList_constructWindow( ui::Window main_window ){
 
        ui::Window window = ui::Window(create_persistent_floating_window( "Entity List", main_window ));
 
-       gtk_window_add_accel_group( window, global_accel );
+       window.add_accel_group(global_accel);
 
        getEntityList().m_positionTracker.connect( window );