Ticket #545: attempt.patch
File attempt.patch, 3.0 KB (added by westram, 10 years ago) |
---|
-
EDIT4/ED4_search.cxx
980 980 // -------------------------------------------------------------------------------- 981 981 982 982 void ED4_SearchResults::addSearchPosition(ED4_SearchPosition *pos) { 983 static int max_allowed_results = 100000; 983 // static int max_allowed_results = 100000; 984 static int max_allowed_results = 1000; 984 985 985 986 if (ignore_more_results) return; 986 987 -
WINDOW/AW_dialog.cxx
51 51 } 52 52 53 53 void AW_dialog::run() { 54 LocallyModify<bool> flag(AW_root::SINGLETON->disable_callbacks, true); 55 54 56 gtk_widget_show_all(GTK_WIDGET(prvt->dialog)); 55 57 prvt->result = gtk_dialog_run(prvt->dialog); 56 58 gtk_widget_hide(GTK_WIDGET(prvt->dialog)); -
WINDOW/AW_area_management.cxx
23 23 24 24 #include <iostream> 25 25 26 //#define DUMP_EVENTS 26 #if defined(DEBUG) 27 #define DUMP_EVENTS 28 #endif 27 29 28 30 #if defined(DUMP_EVENTS) 29 31 # define DUMP_EVENT(type) \ … … 41 43 42 44 #else 43 45 # define DUMP_EVENT(type) 44 #endif // DEBUG46 #endif 45 47 46 48 47 49 class AW_area_management::Pimpl : virtual Noncopyable { … … 91 93 aww->event.character = '\0'; 92 94 } 93 95 96 static bool dont_nest_events = false; 97 94 98 extern "C" gboolean aw_handle_configure_event(GtkWidget *, GdkEventConfigure *event, gpointer self) { 95 99 AW_area_management* area = (AW_area_management*) self; 96 100 AW_window* aww = area->prvt->aww; 101 102 if (dont_nest_events) { 103 DUMP_EVENT("resize (ignored)"); 104 return false; 105 } 106 LocallyModify<bool> flag(dont_nest_events, true); 107 97 108 aw_event_clear(aww); 98 109 99 110 aww->event.type = (AW_event_type) event->type; … … 108 119 DUMP_EVENT("resize"); 109 120 return true; // event handled 110 121 } 111 122 112 123 extern "C" gboolean aw_handle_expose_event(GtkWidget *, GdkEventExpose *event, gpointer self) { 113 124 AW_area_management* area = (AW_area_management*) self; 114 125 AW_window* aww = area->prvt->aww; 126 127 if (dont_nest_events) { 128 DUMP_EVENT("expose (ignored)"); 129 return false; 130 } 131 LocallyModify<bool> flag(dont_nest_events, true); 132 115 133 aw_event_clear(aww); 134 116 135 aww->event.type = (AW_event_type) event->type; 117 136 aww->event.x = event->area.x; 118 137 aww->event.y = event->area.y; … … 123 142 area->expose.emit(); 124 143 area->prvt->screen_device->set_cr(0); 125 144 DUMP_EVENT("expose"); 126 return false; 145 return false; // @@@ does this mean "not handled"? 127 146 } 128 147 129 148 extern "C" gboolean aw_handle_button_event(GtkWidget *, GdkEventButton *event, gpointer self) {