Changeset 4844


Ignore:
Timestamp:
Jan 27, 2008, 6:50:37 PM (14 years ago)
Author:
charles
Message:

(gtk) #659 replace deprecated gtk+ API calls

Location:
trunk/gtk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/hig.c

    r4404 r4844  
    2828{
    2929        GtkWidget * w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    30         gtk_widget_set_usize (w, 0u, 6u);
     30        gtk_widget_set_size_request (w, 0u, 6u);
    3131        gtk_table_attach (GTK_TABLE(table), w, 0, 4, *row, *row+1, 0, 0, 0, 0);
    3232        ++*row;
     
    5858        /* spacer to move the fields a little to the right of the name header */
    5959        w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    60         gtk_widget_set_usize (w, 18u, 0u);
     60        gtk_widget_set_size_request (w, 18u, 0u);
    6161        gtk_table_attach (GTK_TABLE(table), w, 0, 1, row, row+items_in_section, 0, 0, 0, 0);
    6262
    6363        /* spacer between the controls and their labels */
    6464        w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    65         gtk_widget_set_usize (w, 12u, 0u);
     65        gtk_widget_set_size_request (w, 12u, 0u);
    6666        gtk_table_attach (GTK_TABLE(table), w, 2, 3, row, row+items_in_section, 0, 0, 0, 0);
    6767}
  • trunk/gtk/makemeta-ui.c

    r4404 r4844  
    271271        gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    272272        w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    273         gtk_widget_set_usize (w, 2 * GUI_PAD_BIG, 0);
     273        gtk_widget_set_size_request (w, 2 * GUI_PAD_BIG, 0);
    274274        gtk_box_pack_start_defaults ( GTK_BOX(h), w );
    275275        hig_workarea_add_row (t, &row, "", h, NULL);
  • trunk/gtk/msgwin.c

    r4404 r4844  
    261261
    262262  w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
    263   gtk_widget_set_usize( w, GUI_PAD_SMALL, GUI_PAD_SMALL );
     263  gtk_widget_set_size_request( w, GUI_PAD_SMALL, GUI_PAD_SMALL );
    264264  gtk_toolbar_append_element( GTK_TOOLBAR(toolbar),
    265265                              GTK_TOOLBAR_CHILD_WIDGET, w,
  • trunk/gtk/torrent-inspector.c

    r4816 r4844  
    599599
    600600    w = da = p->completeness = gtk_drawing_area_new ();
    601     gtk_widget_set_usize (w, 0u, 100u);
     601    gtk_widget_set_size_request (w, 0u, 100u);
    602602    g_object_set_data (G_OBJECT(w), "draw-mode", GINT_TO_POINTER(DRAW_AVAIL));
    603603    g_signal_connect (w, "expose-event", G_CALLBACK(refresh_pieces), gtor);
     
    605605    h = gtk_hbox_new (FALSE, GUI_PAD);
    606606    w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    607     gtk_widget_set_usize (w, GUI_PAD_BIG, 0);
     607    gtk_widget_set_size_request (w, GUI_PAD_BIG, 0);
    608608    gtk_box_pack_start (GTK_BOX(h), w, FALSE, FALSE, 0);
    609609    gtk_box_pack_start_defaults (GTK_BOX(h), da);
     
    612612    /* a small vertical spacer */
    613613    w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    614     gtk_widget_set_usize (w, 0u, GUI_PAD);
     614    gtk_widget_set_size_request (w, 0u, GUI_PAD);
    615615    gtk_box_pack_start (GTK_BOX(vbox), w, FALSE, FALSE, 0);
    616616
     
    623623    h = gtk_hbox_new (FALSE, GUI_PAD);
    624624    w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    625     gtk_widget_set_usize (w, GUI_PAD_BIG, 0);
     625    gtk_widget_set_size_request (w, GUI_PAD_BIG, 0);
    626626    gtk_box_pack_start (GTK_BOX(h), w, FALSE, FALSE, 0);
    627627    gtk_box_pack_start_defaults (GTK_BOX(h), sw);
     
    630630    hbox = gtk_hbox_new (FALSE, GUI_PAD);
    631631    w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);
    632     gtk_widget_set_usize (w, GUI_PAD_BIG, 0);
     632    gtk_widget_set_size_request (w, GUI_PAD_BIG, 0);
    633633    gtk_box_pack_start (GTK_BOX(hbox), w, FALSE, FALSE, 0);
    634634        g_snprintf (name, sizeof(name), "<b>%s:</b>", _("Seeders"));
     
    887887
    888888    w = a->availability_da = gtk_drawing_area_new ();
    889     gtk_widget_set_usize (w, 0u, 100u);
     889    gtk_widget_set_size_request (w, 0u, 100u);
    890890    g_object_set_data (G_OBJECT(w), "draw-mode", GINT_TO_POINTER(DRAW_PROG));
    891891    g_signal_connect (w, "expose-event", G_CALLBACK(refresh_pieces), gtor);
     
    13371337                                         GTK_SHADOW_IN);
    13381338    gtk_container_add( GTK_CONTAINER( scroll ), view );
    1339     gtk_widget_set_usize (scroll, 0u, 200u);
     1339    gtk_widget_set_size_request (scroll, 0u, 200u);
    13401340    gtk_container_set_border_width (GTK_CONTAINER(scroll), GUI_PAD);
    13411341
  • trunk/gtk/tr_window.c

    r4745 r4844  
    517517    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    518518    w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
    519     gtk_widget_set_usize( w, GUI_PAD, 0u );
     519    gtk_widget_set_size_request( w, GUI_PAD, 0u );
    520520    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    521521    w = p->dl_lb = gtk_label_new( NULL );
     
    524524    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    525525    w = gtk_alignment_new( 0.0f, 0.0f, 0.0f, 0.0f );
    526     gtk_widget_set_usize( w, GUI_PAD, 0u );
     526    gtk_widget_set_size_request( w, GUI_PAD, 0u );
    527527    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    528528    w = p->stats_lb = gtk_label_new( NULL );
Note: See TracChangeset for help on using the changeset viewer.