Removed GM_DEBUG

This commit is contained in:
Jesse van den Kieboom 2006-01-02 17:49:01 +00:00
parent 6fcc51746b
commit b59f2e3bc3
1 changed files with 5 additions and 7 deletions

View File

@ -23,6 +23,8 @@ typedef struct _GmMcpUserlistView {
GtkListStore *store;
GtkTreeView *tree_view;
GtkScrolledWindow *scrolled_window;
gboolean initializing;
} GmMcpUserlistView;
void on_gm_mcp_userlist_view_weak_notify(gpointer data, GObject *obj);
@ -38,7 +40,8 @@ void on_gm_mcp_userlist_view_rank_changed(GmMcpPackage *package, gint id,
gchar const *icon, gchar const *sort, GmMcpUserlistView *view);
void on_gm_mcp_userlist_view_state_changed(GmMcpPackage *package, gint id,
gchar const *icon, gchar const *sort, GmMcpUserlistView *view);
void on_gm_mcp_userlist_view_initializing(GmMcpPackage *package,
gboolean initializing, GmMcpUserlistView *view);
GtkTreeModel *
gm_mcp_userlist_view_model_create(GmMcpUserlistView *view) {
@ -145,19 +148,14 @@ on_gm_mcp_userlist_view_weak_notify(gpointer data, GObject *obj) {
GList *children;
if (GM_IS_WORLD_VIEW(view->view)) {
GM_DEBUG("Destroying scrolled window!");
gtk_widget_destroy(GTK_WIDGET(view->scrolled_window));
vbox = gtk_paned_get_child2(GTK_PANED(gm_world_view_hpaned(
view->view)));
if (vbox != NULL) {
GM_DEBUG("VBox is still there!");
children = gtk_container_get_children(GTK_CONTAINER(vbox));
if (children == NULL) {
GM_DEBUG("VBox is empty, remove it!");
gtk_widget_destroy(vbox);
}
@ -202,7 +200,7 @@ on_gm_mcp_userlist_view_player_added(GmMcpPackage *package, gint id,
gtk_list_store_set(view->store, &iter, GM_USERLIST_ID, id, GM_USERLIST_ICON,
gm_pixbuf_get_at_size(icon, GM_USERLIST_ICON_SIZE,
GM_USERLIST_ICON_SIZE), GM_USERLIST_NAME, name, GM_USERLIST_SORT,
sort, -1);
sort, -1);
}
void