Changeset 5098


Ignore:
Timestamp:
Feb 24, 2008, 2:32:42 PM (14 years ago)
Author:
charles
Message:

(gtk) minor tweak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr_window.c

    r5025 r5098  
    105105get_private_data( TrWindow * w )
    106106{
    107     return (PrivateData*) g_object_get_data (G_OBJECT(w), PRIVATE_DATA_KEY);
     107    return g_object_get_data (G_OBJECT(w), PRIVATE_DATA_KEY);
    108108}
    109109
     
    225225privateFree( gpointer vprivate )
    226226{
    227     PrivateData * p = ( PrivateData * ) vprivate;
     227    PrivateData * p = vprivate;
    228228    g_signal_handler_disconnect( p->core, p->pref_handler_id );
    229229    g_free( p->filter_text );
     
    234234onYinYangReleased( GtkWidget * w UNUSED, GdkEventButton * button UNUSED, gpointer vprivate )
    235235{
    236     PrivateData * p = ( PrivateData * ) vprivate;
     236    PrivateData * p = vprivate;
    237237    gtk_menu_popup( GTK_MENU( p->status_menu ), 0, 0, 0, 0, 0, gtk_get_current_event_time( ) );
    238238}
     
    255255    if( gtk_check_menu_item_get_active( menu_item ) )
    256256    {
    257         PrivateData * p = (PrivateData*) vprivate;
     257        PrivateData * p = vprivate;
    258258        const char * val = g_object_get_data( G_OBJECT( menu_item ), STATS_MODE );
    259259        tr_core_set_pref( p->core, PREF_KEY_STATUS_BAR_STATS, val );
     
    359359    if( gtk_check_menu_item_get_active( menu_item ) )
    360360    {
    361         PrivateData * p = (PrivateData*) vprivate;
     361        PrivateData * p = vprivate;
    362362        p->filter_text_mode = GPOINTER_TO_UINT( g_object_get_data( G_OBJECT( menu_item ),
    363363                                                                   FILTER_TEXT_MODE_KEY ) );
     
    369369filter_toggled_cb( GtkToggleButton * toggle, gpointer vprivate )
    370370{
    371     PrivateData * p = (PrivateData*) vprivate;
     371    PrivateData * p = vprivate;
    372372    GSList * l;
    373373    GSList * toggles = g_object_get_data( G_OBJECT( toggle ), FILTER_TOGGLES_KEY );
     
    397397{
    398398    char * pch;
    399     PrivateData * p = (PrivateData*) vprivate;
     399    PrivateData * p = vprivate;
    400400
    401401    pch = gtk_editable_get_chars( e, 0, -1 );
Note: See TracChangeset for help on using the changeset viewer.