Ticket #659: rm_depreciated.patch

File rm_depreciated.patch, 6.0 KB (added by bruce89, 14 years ago)

Removed depreciated code

  • gtk/makemeta-ui.c

     
    270270        w = ui->pieces_lb = gtk_label_new (NULL);
    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);
    276276       
  • gtk/msgwin.c

     
    260260                             NULL, NULL, NULL, NULL);
    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,
    266266                              NULL, NULL, NULL, NULL, NULL, NULL);
  • gtk/torrent-inspector.c

     
    598598    gtk_box_pack_start (GTK_BOX(vbox), l, FALSE, FALSE, 0);
    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);
    604604
    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);
    610610    gtk_box_pack_start (GTK_BOX(vbox), h, FALSE, FALSE, 0);
    611611
    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
    617617    g_snprintf (name, sizeof(name), "<b>%s</b>", _("Connected Peers"));
     
    622622
    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);
    628628    gtk_box_pack_start_defaults (GTK_BOX(vbox), h);
    629629
    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"));
    635635        l = gtk_label_new (NULL);
     
    886886    hig_workarea_add_row (t, &row, _("Error:"), l, NULL);
    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);
    892892    hig_workarea_add_row (t, &row, _("Completeness:"), w, NULL);
     
    13361336    gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW(scroll),
    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
    13421342    ret = scroll;
  • gtk/hig.c

     
    2727                                   int         * row)
    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;
    3333}
     
    5757
    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}
    6868
  • gtk/tr_window.c

     
    516516    w = gtk_image_new_from_stock( GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU );
    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 );
    522522    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );
    523523    w = gtk_image_new_from_stock( GTK_STOCK_GO_DOWN, GTK_ICON_SIZE_MENU );
    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 );
    529529    gtk_box_pack_end( GTK_BOX(h), w, FALSE, FALSE, 0 );