Changeset 587
- Timestamp:
- 09/28/07 20:08:23 (1 year ago)
- Files:
-
- trunk/lib/xtra/angband.glade (modified) (1 diff)
- trunk/src/main-gtk.c (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/xtra/angband.glade
r578 r587 284 284 285 285 <child> 286 <widget class="GtkMenuItem" id=" testing_menu">287 <property name="visible">True</property> 288 <property name="label" translatable="yes">_ Testing</property>286 <widget class="GtkMenuItem" id="extra_menu"> 287 <property name="visible">True</property> 288 <property name="label" translatable="yes">_Extra</property> 289 289 <property name="use_underline">True</property> 290 290 291 291 <child> 292 <widget class="GtkMenu" id=" testing_menu_menu">292 <widget class="GtkMenu" id="extra_menu_menu"> 293 293 294 294 <child> trunk/src/main-gtk.c
r578 r587 32 32 /*#define VERBOSE_DEBUG*/ 33 33 34 /*35 * This will disable testing features.36 */37 /*#define DISABLE_GTK_TESTING*/38 39 34 static int max_win_width(term_data *td) 40 35 { … … 118 113 119 114 s = cairo_rect_to_gdk(&r); 120 gdk_window_invalidate_rect(widget->window, &s, TRUE); 115 if (widget->window != NULL) 116 { 117 gdk_window_invalidate_rect(widget->window, &s, TRUE); 118 } 121 119 } 122 120 … … 1550 1548 g_signal_connect(xd->menu, "activate", G_CALLBACK(toggle_xtra_window), (gpointer) xd->name); 1551 1549 1552 #ifdef DISABLE_GTK_TESTING1553 gtk_widget_set_sensitive(xd->menu, FALSE);1554 #endif1555 1556 1550 xd->text_view = glade_xml_get_widget(gtk_xml, xd->text_view_name); 1557 1551 xd->drawing_area = glade_xml_get_widget(gtk_xml, xd->drawing_area_name); … … 1815 1809 } 1816 1810 1817 #ifndef DISABLE_GTK_TESTING1818 1811 static void handle_map(game_event_type type, game_event_data *data, void *user) 1819 1812 { … … 1853 1846 } 1854 1847 } 1855 #endif1856 1848 1857 1849 static void text_view_put(xtra_win_data *xd, const char *str, byte color) … … 1876 1868 void gtk_log_fmt(byte c, cptr fmt, ...) 1877 1869 { 1878 #ifndef DISABLE_GTK_TESTING1879 1870 xtra_win_data *xd = &xdata[4]; 1880 #endif1881 1871 1882 1872 char *res, str[80]; … … 1884 1874 int n; 1885 1875 1886 #ifndef DISABLE_GTK_TESTING1887 1876 if (GTK_IS_TEXT_VIEW(xd->text_view)) 1888 1877 { … … 1895 1884 init_color_tags(xd); 1896 1885 } 1897 #endif1898 1886 1899 1887 /* Begin the Varargs Stuff */ … … 1913 1901 #endif 1914 1902 1915 #ifndef DISABLE_GTK_TESTING1916 1903 if (GTK_IS_TEXT_VIEW(xd->text_view)) 1917 1904 text_view_print(xd, str, c); 1918 1905 else 1919 #endif1920 1906 plog(str); 1921 1907 } 1922 1908 1923 #ifndef DISABLE_GTK_TESTING1924 1909 /* 1925 1910 * Update our own personal message window. … … 2486 2471 gtk_log_fmt(TERM_WHITE, "Showing the statusline."); 2487 2472 } 2488 #endif2489 2473 2490 2474 void init_handlers() … … 2497 2481 get_game_command = get_init_cmd; 2498 2482 2499 #ifndef DISABLE_GTK_TESTING2500 2483 /* I plan to put everything on the sidebar together, so... */ 2501 2484 event_add_handler_set(my_player_events, N_ELEMENTS(my_player_events), handle_sidebar, NULL); … … 2518 2501 event_add_handler(EVENT_ENTER_DEATH, handle_death, NULL); 2519 2502 event_add_handler(EVENT_END, handle_end, NULL); 2520 #endif2521 2503 } 2522 2504
