Changeset 2031
- Timestamp:
- 05/19/07 01:48:04 (6 years ago)
- Location:
- trunk/src/target/OM-2007/panel-plugins/openmoko-panel-startup
- Files:
-
- 2 edited
-
ChangeLog (modified) (2 diffs)
-
src/openmoko-panel-startup.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/panel-plugins/openmoko-panel-startup/ChangeLog
r2024 r2031 1 2007-05-18 Stefan Schmidt ,,,<stefan@openmoko.org>1 2007-05-18 Stefan Schmidt <stefan@openmoko.org> 2 2 3 Reviewed by NOBODY (OOPS!). 3 * ChangeLog: 4 * src/openmoko-panel-startup.c: 5 (startup_applet_free): 6 (monitor_event_func): 7 (applet_main): 8 (filter_func): 9 Make it less noisy by disableing debug for sn_process return value. 10 Correct the timer add and remove handling. 11 12 2007-05-18 Stefan Schmidt <stefan@openmoko.org> 4 13 5 14 * src/openmoko-panel-startup.c: … … 7 16 (hide_hourglass): 8 17 (mb_panel_applet_create): 18 A special eventbox around the image is not needed. 19 Cleanup some unneeded code 9 20 10 21 2007-05-18 Stefan Schmidt <stefan@openmoko.org> -
trunk/src/target/OM-2007/panel-plugins/openmoko-panel-startup/src/openmoko-panel-startup.c
r2024 r2031 54 54 GdkPixbuf *hglass[HOURGLASS_PIXMAPS]; 55 55 const char *last_icon; 56 guint timeout_id;57 56 GdkWindow *root_window; 58 57 SnDisplay *sn_display; … … 64 63 char *id; 65 64 time_t when; 65 guint timeout_id; 66 66 LaunchList *next; 67 67 }; … … 77 77 gdk_window_remove_filter (applet->root_window, 78 78 (GdkFilterFunc) filter_func, applet); 79 g_source_remove(applet->timeout_id);80 79 g_slice_free(StartupApplet, applet); 81 80 } … … 120 119 { 121 120 g_message("Entered SN_MONITOR_EVENT_INITIATED"); 122 123 /* Set up a timeout that will be called every 0.5 seconds */124 applet->timeout_id = g_timeout_add(500,125 (GSourceFunc) applet_main, applet);126 121 127 122 LaunchList *item = launch_list; … … 145 140 item->when = t + TIMEOUT; 146 141 142 /* Set up a timeout that will be called every 0.5 seconds */ 143 item->timeout_id = g_timeout_add(500, 144 (GSourceFunc) applet_main, applet); 145 147 146 if (!hourglass_shown) 148 147 show_hourglass(applet); … … 164 163 last_item->next = item->next; 165 164 165 g_source_remove(item->timeout_id); 166 166 free(item->id); 167 167 free(item); … … 175 175 if (launch_list == NULL && hourglass_shown) 176 176 hide_hourglass(applet); 177 178 g_source_remove(applet->timeout_id);179 177 } 180 178 break; … … 205 203 last_item->next = item->next; 206 204 205 g_source_remove(item->timeout_id); 207 206 free(item->id); 208 207 free(item); … … 238 237 ret = sn_display_process_event(applet->sn_display, xevent); 239 238 240 g_message("%s: sn_display_process return value: %i", G_STRFUNC, ret);239 //g_message("%s: sn_display_process return value: %i", G_STRFUNC, ret); 241 240 242 241 return GDK_FILTER_CONTINUE;
Note: See TracChangeset
for help on using the changeset viewer.
