Changeset 6056


Ignore:
Timestamp:
Jun 5, 2008, 6:59:07 PM (14 years ago)
Author:
charles
Message:

(gtk) #992: Button icons cut off in New Torrent dialog

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/makemeta-ui.c

    r6020 r6056  
    313313    MakeMetaUI * ui = g_new0 ( MakeMetaUI, 1 );
    314314    ui->handle = handle;
    315     int width, height;
    316315
    317316    d = gtk_dialog_new_with_buttons( _("New Torrent"),
     
    365364        ui->announce_list = w;
    366365        hig_workarea_add_wide_control( t, &row, w );
    367         tracker_list_get_button_size( w, &width, &height );
    368         gtk_widget_set_size_request( b1, width, height );
    369         gtk_widget_set_size_request( b2, width, height );
    370366
    371367    hig_workarea_add_section_divider( t, &row );
  • trunk/gtk/tracker-list.c

    r5999 r6056  
    372372    return trackers;
    373373}
    374 
    375 void
    376 tracker_list_get_button_size( GtkWidget  * list,
    377                               gint       * width,
    378                               gint       * height )
    379 {
    380     struct tracker_page * page = g_object_get_data( G_OBJECT( list ), "page" );
    381     GtkRequisition req;
    382     gtk_widget_size_request( page->remove_button, &req );
    383     if( width ) *width = req.width;
    384     if( height ) *height = req.height;
    385 }
  • trunk/gtk/tracker-list.h

    r5996 r6056  
    66
    77GtkWidget* tracker_list_new( TrTorrent * gtor );
    8 
    9 void tracker_list_get_button_size( GtkWidget  * list,
    10                                    gint       * width,
    11                                    gint       * height );
    128
    139/**
Note: See TracChangeset for help on using the changeset viewer.