(gtk) minor code cleanup

This commit is contained in:
Charles Kerr 2008-03-17 03:25:03 +00:00
parent 23f33e1bd1
commit a4909bbd1b
1 changed files with 5 additions and 14 deletions

View File

@ -103,18 +103,18 @@ static const char * LICENSE =
struct cbdata
{
gboolean minimized;
gboolean closing;
guint timer;
guint idle_hide_mainwindow_tag;
gpointer icon;
GtkWindow * wind;
TrCore * core;
gpointer icon;
GtkWidget * msgwin;
GtkWidget * prefs;
guint timer;
gboolean closing;
GList * errqueue;
GHashTable * tor2details;
GHashTable * details2tor;
gboolean minimized;
};
#define CBDATA_PTR "callback-data-pointer"
@ -130,8 +130,6 @@ appsetup( TrWindow * wind, GList * args,
static void
winsetup( struct cbdata * cbdata, TrWindow * wind );
static void
makeicon( struct cbdata * cbdata );
static void
wannaquit( void * vdata );
static void
setupdrag(GtkWidget *widget, struct cbdata *data);
@ -397,7 +395,7 @@ appsetup( TrWindow * wind, GList * args,
winsetup( cbdata, wind );
/* set up the system tray */
makeicon( cbdata );
cbdata->icon = tr_icon_new( cbdata->core );
/* start model update timer */
cbdata->timer = g_timeout_add( UPDATE_INTERVAL, updatemodel, cbdata );
@ -531,13 +529,6 @@ winsetup( struct cbdata * cbdata, TrWindow * wind )
setupdrag( GTK_WIDGET(wind), cbdata );
}
static void
makeicon( struct cbdata * cbdata )
{
if( cbdata->icon == NULL )
cbdata->icon = tr_icon_new( cbdata->core );
}
static gpointer
quitThreadFunc( gpointer gdata )
{