forked from Mirrors/openclonk
editor/gtk: Hide unimplemented menu entries and object list pictures
The components menu entries never got implemented for the gtk editor mode and probably never will, given their limited utility. The object list pictures are simply broken.stable-5.2
parent
20afa7b470
commit
476439a1d4
|
@ -523,7 +523,7 @@ void C4ConsoleGUI::State::InitGUI()
|
|||
|
||||
compObjects = gtk_menu_item_new_with_label(LoadResStr("IDS_BTN_OBJECTS"));
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menuComponents), compObjects);
|
||||
|
||||
#if 0
|
||||
compScript = gtk_menu_item_new_with_label(LoadResStr("IDS_MNU_SCRIPT"));
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menuComponents), compScript);
|
||||
|
||||
|
@ -532,7 +532,7 @@ void C4ConsoleGUI::State::InitGUI()
|
|||
|
||||
compInfo = gtk_menu_item_new_with_label(LoadResStr("IDS_MNU_INFO"));
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menuComponents), compInfo);
|
||||
|
||||
#endif
|
||||
plrJoin = gtk_menu_item_new_with_label(LoadResStr("IDS_MNU_JOIN"));
|
||||
gtk_menu_shell_append(GTK_MENU_SHELL(menuPlayer), plrJoin);
|
||||
|
||||
|
|
|
@ -791,11 +791,11 @@ void C4ObjectListDlg::Open()
|
|||
|
||||
GtkTreeViewColumn * col = gtk_tree_view_column_new();
|
||||
GtkCellRenderer * renderer;
|
||||
|
||||
#if 0
|
||||
renderer = gtk_cell_renderer_pixbuf_new();
|
||||
gtk_tree_view_column_pack_start(col, renderer, false);
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer, icon_cell_data_func, g_hash_table_new_full(NULL, NULL, NULL, (GDestroyNotify)g_object_unref), (GDestroyNotify)g_hash_table_unref);
|
||||
|
||||
#endif
|
||||
renderer = gtk_cell_renderer_text_new();
|
||||
gtk_tree_view_column_pack_start(col, renderer, true);
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer, name_cell_data_func, NULL, NULL);
|
||||
|
|
Loading…
Reference in New Issue