Changeset 2031


Ignore:
Timestamp:
05/19/07 01:48:04 (6 years ago)
Author:
stefan
Message:

2007-05-18 Stefan Schmidt <stefan@…>

  • ChangeLog?:
  • src/openmoko-panel-startup.c: (startup_applet_free): (monitor_event_func): (applet_main): (filter_func):

Make it less noisy by disableing debug for sn_process return value.
Correct the timer add and remove handling.

Location:
trunk/src/target/OM-2007/panel-plugins/openmoko-panel-startup
Files:
2 edited

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> 
     12007-05-18  Stefan Schmidt <stefan@openmoko.org> 
    22 
    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 
     122007-05-18  Stefan Schmidt <stefan@openmoko.org> 
    413 
    514        * src/openmoko-panel-startup.c: 
     
    716        (hide_hourglass): 
    817        (mb_panel_applet_create): 
     18                A special eventbox around the image is not needed. 
     19                Cleanup some unneeded code 
    920 
    10212007-05-18 Stefan Schmidt <stefan@openmoko.org> 
  • trunk/src/target/OM-2007/panel-plugins/openmoko-panel-startup/src/openmoko-panel-startup.c

    r2024 r2031  
    5454        GdkPixbuf *hglass[HOURGLASS_PIXMAPS]; 
    5555        const char *last_icon; 
    56         guint timeout_id; 
    5756        GdkWindow *root_window; 
    5857        SnDisplay *sn_display; 
     
    6463        char *id; 
    6564        time_t when; 
     65        guint timeout_id; 
    6666        LaunchList *next; 
    6767}; 
     
    7777        gdk_window_remove_filter (applet->root_window, 
    7878                                        (GdkFilterFunc) filter_func, applet); 
    79         g_source_remove(applet->timeout_id); 
    8079        g_slice_free(StartupApplet, applet); 
    8180} 
     
    120119                { 
    121120                        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); 
    126121 
    127122                        LaunchList *item = launch_list; 
     
    145140                        item->when = t + TIMEOUT; 
    146141 
     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 
    147146                        if (!hourglass_shown) 
    148147                                show_hourglass(applet); 
     
    164163                                                last_item->next = item->next; 
    165164 
     165                                        g_source_remove(item->timeout_id); 
    166166                                        free(item->id); 
    167167                                        free(item); 
     
    175175                        if (launch_list == NULL && hourglass_shown) 
    176176                                hide_hourglass(applet); 
    177  
    178                         g_source_remove(applet->timeout_id); 
    179177                } 
    180178                break; 
     
    205203                                last_item->next = item->next; 
    206204 
     205                        g_source_remove(item->timeout_id); 
    207206                        free(item->id); 
    208207                        free(item); 
     
    238237        ret = sn_display_process_event(applet->sn_display, xevent); 
    239238 
    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); 
    241240 
    242241        return GDK_FILTER_CONTINUE; 
Note: See TracChangeset for help on using the changeset viewer.