Changeset 13390


Ignore:
Timestamp:
Jul 14, 2012, 10:41:33 PM (9 years ago)
Author:
jordan
Message:

(trunk, gtk) remove the pointless TrWindow? typedef

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r13388 r13390  
    477477****/
    478478
    479 static void app_setup( TrWindow * wind, struct cbdata  * cbdata );
     479static void app_setup( GtkWindow * wind, struct cbdata  * cbdata );
    480480
    481481static void
     
    670670static void on_add_torrent( TrCore *, tr_ctor *, gpointer );
    671671static void on_prefs_changed( TrCore * core, const char * key, gpointer );
    672 static void main_window_setup( struct cbdata * cbdata, TrWindow * wind );
     672static void main_window_setup( struct cbdata * cbdata, GtkWindow * wind );
    673673static gboolean update_model_loop( gpointer gdata );
    674674static gboolean update_model_once( gpointer gdata );
    675675
    676676static void
    677 app_setup( TrWindow * wind, struct cbdata * cbdata )
     677app_setup( GtkWindow * wind, struct cbdata * cbdata )
    678678{
    679679    if( cbdata->is_iconified )
     
    835835
    836836static void
    837 main_window_setup( struct cbdata * cbdata, TrWindow * wind )
     837main_window_setup( struct cbdata * cbdata, GtkWindow * wind )
    838838{
    839839    GtkWidget * w;
     
    842842
    843843    g_assert( NULL == cbdata->wind );
    844     cbdata->wind = GTK_WINDOW( wind );
     844    cbdata->wind = wind;
    845845    cbdata->sel = sel = GTK_TREE_SELECTION( gtr_window_get_selection( cbdata->wind ) );
    846846
  • trunk/gtk/tr-window.c

    r13388 r13390  
    7777
    7878static PrivateData*
    79 get_private_data( TrWindow * w )
     79get_private_data( GtkWindow * w )
    8080{
    8181    return g_object_get_qdata ( G_OBJECT( w ), get_private_data_key( ) );
     
    216216    else if( !strcmp( key, PREF_KEY_STATUSBAR_STATS ) )
    217217    {
    218         gtr_window_refresh( (TrWindow*)wind );
     218        gtr_window_refresh( wind );
    219219    }
    220220    else if( !strcmp( key, TR_PREFS_KEY_ALT_SPEED_ENABLED ) ||
     
    860860
    861861void
    862 gtr_window_refresh( TrWindow * self )
     862gtr_window_refresh( GtkWindow * self )
    863863{
    864864    PrivateData * p = get_private_data( self );
     
    873873
    874874GtkTreeSelection*
    875 gtr_window_get_selection( TrWindow * w )
     875gtr_window_get_selection( GtkWindow * w )
    876876{
    877877    return get_private_data( w )->selection;
     
    879879
    880880void
    881 gtr_window_set_busy( TrWindow * w, gboolean isBusy )
     881gtr_window_set_busy( GtkWindow * w, gboolean isBusy )
    882882{
    883883    if( w && gtk_widget_get_realized( GTK_WIDGET( w ) ) )
  • trunk/gtk/tr-window.h

    r11709 r13390  
    2929#include "tr-core.h"
    3030
    31 typedef GtkWindow TrWindow;
    32 
    3331GtkWidget        * gtr_window_new( GtkUIManager * uim, TrCore * core );
    34 GtkTreeSelection * gtr_window_get_selection( TrWindow * );
    35 void               gtr_window_set_busy( TrWindow *, gboolean isBusy );
    36 void               gtr_window_refresh( TrWindow * );
     32GtkTreeSelection * gtr_window_get_selection( GtkWindow * );
     33void               gtr_window_set_busy( GtkWindow *, gboolean isBusy );
     34void               gtr_window_refresh( GtkWindow * );
    3735
    3836#endif /* GTR_WINDOW_H */
Note: See TracChangeset for help on using the changeset viewer.