Changeset 5268


Ignore:
Timestamp:
Mar 17, 2008, 3:25:03 AM (14 years ago)
Author:
charles
Message:

(gtk) minor code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r5262 r5268  
    104104struct cbdata
    105105{
     106    gboolean       minimized;
     107    gboolean       closing;
     108    guint          timer;
    106109    guint          idle_hide_mainwindow_tag;
     110    gpointer       icon;
    107111    GtkWindow    * wind;
    108112    TrCore       * core;
    109     gpointer       icon;
    110113    GtkWidget    * msgwin;
    111114    GtkWidget    * prefs;
    112     guint          timer;
    113     gboolean       closing;
    114115    GList        * errqueue;
    115116    GHashTable   * tor2details;
    116117    GHashTable   * details2tor;
    117     gboolean       minimized;
    118118};
    119119
     
    130130static void
    131131winsetup( struct cbdata * cbdata, TrWindow * wind );
    132 static void
    133 makeicon( struct cbdata * cbdata );
    134132static void
    135133wannaquit( void * vdata );
     
    398396
    399397    /* set up the system tray */
    400     makeicon( cbdata );
     398    cbdata->icon = tr_icon_new( cbdata->core );
    401399
    402400    /* start model update timer */
     
    530528   
    531529    setupdrag( GTK_WIDGET(wind), cbdata );
    532 }
    533 
    534 static void
    535 makeicon( struct cbdata * cbdata )
    536 {
    537     if( cbdata->icon == NULL )
    538         cbdata->icon = tr_icon_new( cbdata->core );
    539530}
    540531
Note: See TracChangeset for help on using the changeset viewer.