Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
uget
uget-gtk-deprecation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File uget-gtk-deprecation.patch of Package uget
diff -ur uget-1.8.0/uget-gtk/UgApp-gtk.c uget-1.8.0.patched/uget-gtk/UgApp-gtk.c --- uget-1.8.0/uget-gtk/UgApp-gtk.c 2011-05-03 18:00:31.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgApp-gtk.c 2011-08-08 11:19:43.816673973 +0200 @@ -618,14 +618,14 @@ gtk_container_set_border_width (GTK_CONTAINER (dialog), 4); vbox = (GtkBox*) gtk_dialog_get_content_area (GTK_DIALOG (dialog)); // image and label - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (hbox, gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG), FALSE, FALSE, 8); gtk_box_pack_start (hbox, gtk_label_new (_("Are you sure you want to quit?")), FALSE, FALSE, 4); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 6); // check button - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); button = gtk_check_button_new_with_label (_("Remember this action")); gtk_box_pack_end (hbox, button, TRUE, TRUE, 20); gtk_box_pack_end (vbox, (GtkWidget*) hbox, FALSE, FALSE, 10); @@ -703,14 +703,14 @@ gtk_container_set_border_width (GTK_CONTAINER (dialog), 4); vbox = (GtkBox*) gtk_dialog_get_content_area (GTK_DIALOG (dialog)); // image and label - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (hbox, gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION, GTK_ICON_SIZE_DIALOG), FALSE, FALSE, 8); gtk_box_pack_start (hbox, gtk_label_new (_("Are you sure you want to delete files?")), FALSE, FALSE, 4); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 6); // check button - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); button = gtk_check_button_new_with_label (_("Do not ask me again")); gtk_box_pack_end (hbox, button, TRUE, TRUE, 20); gtk_box_pack_end (vbox, (GtkWidget*) hbox, FALSE, FALSE, 10); diff -ur uget-1.8.0/uget-gtk/UgApp-gtk-gui.c uget-1.8.0.patched/uget-gtk/UgApp-gtk-gui.c --- uget-1.8.0/uget-gtk/UgApp-gtk-gui.c 2011-05-01 07:04:52.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgApp-gtk-gui.c 2011-08-08 11:34:59.973042502 +0200 @@ -200,19 +200,19 @@ gtk_window_set_default_icon_name (UG_APP_GTK_ICON_NAME); // top container for Main Window - vbox = (GtkBox*) gtk_vbox_new (FALSE, 0); + vbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (window->self), GTK_WIDGET (vbox)); gtk_box_pack_start (vbox, app->menubar.self, FALSE, FALSE, 0); // right side vbox - rbox = (GtkBox*) gtk_vbox_new (FALSE, 0); + rbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_box_pack_start (rbox, app->toolbar.self, FALSE, FALSE, 0); // hpaned - window->hpaned = (GtkPaned*) gtk_hpaned_new (); + window->hpaned = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (vbox, GTK_WIDGET (window->hpaned), TRUE, TRUE, 0); gtk_paned_pack1 (window->hpaned, app->cwidget.self, FALSE, TRUE); gtk_paned_pack2 (window->hpaned, GTK_WIDGET (rbox), TRUE, FALSE); // vpaned - window->vpaned = (GtkPaned*) gtk_vpaned_new (); + window->vpaned = (GtkPaned*) gtk_paned_new (GTK_ORIENTATION_VERTICAL); gtk_box_pack_start (rbox, (GtkWidget*) window->vpaned, TRUE, TRUE, 0); // gtk_paned_pack1 (window->vpaned, GTK_WIDGET (app->cwidget.primary->all.self), TRUE, TRUE); gtk_paned_pack2 (window->vpaned, GTK_WIDGET (app->summary.self), FALSE, TRUE); @@ -245,7 +245,7 @@ gtk_misc_set_alignment (GTK_MISC (widget), 0, 0.5); gtk_box_pack_end (hbox, gtk_label_new ("U:"), FALSE, TRUE, 2); - gtk_box_pack_end (hbox, gtk_vseparator_new (), FALSE, TRUE, 8); + gtk_box_pack_end (hbox, gtk_separator_new (GTK_ORIENTATION_VERTICAL), FALSE, TRUE, 8); // download speed label widget = gtk_label_new (""); diff -ur uget-1.8.0/uget-gtk/UgBatchForm.c uget-1.8.0.patched/uget-gtk/UgBatchForm.c --- uget-1.8.0/uget-gtk/UgBatchForm.c 2011-04-07 04:48:24.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgBatchForm.c 2011-08-08 11:33:40.447931443 +0200 @@ -75,7 +75,7 @@ label = gtk_label_new ("http://for.example/path/pre*.jpg"); gtk_table_attach (table, label, 1, 6, 1, 2, GTK_SHRINK, GTK_SHRINK, 3, 3); - gtk_table_attach (table, gtk_hseparator_new (), 0, 6, 2, 3, + gtk_table_attach (table, gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), 0, 6, 2, 3, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 3, 3); // ------------------------------------------------------- diff -ur uget-1.8.0/uget-gtk/UgCategoryWidget.c uget-1.8.0.patched/uget-gtk/UgCategoryWidget.c --- uget-1.8.0/uget-gtk/UgCategoryWidget.c 2011-04-29 03:34:25.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgCategoryWidget.c 2011-08-08 11:25:27.861191883 +0200 @@ -123,7 +123,7 @@ ug_category_model_filter, NULL, NULL); // container widget - cwidget->self = gtk_vbox_new (FALSE, 2); + cwidget->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); vbox = GTK_BOX (cwidget->self); gtk_box_pack_start (vbox, GTK_WIDGET (cwidget->primary.view), FALSE, FALSE, 0); gtk_box_pack_start (vbox, gtk_label_new (_("Category")), FALSE, FALSE, 0); diff -ur uget-1.8.0/uget-gtk/UgDownloadDialog.c uget-1.8.0.patched/uget-gtk/UgDownloadDialog.c --- uget-1.8.0/uget-gtk/UgDownloadDialog.c 2011-04-29 03:34:25.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgDownloadDialog.c 2011-08-08 11:24:14.708216806 +0200 @@ -59,7 +59,7 @@ ddialog->self = (GtkDialog*) gtk_dialog_new_with_buttons (title, parent, GTK_DIALOG_DESTROY_WITH_PARENT, NULL); box = (GtkBox*) gtk_dialog_get_content_area (ddialog->self); - widget = gtk_hbox_new (FALSE, 2); + widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (box, widget, TRUE, TRUE, 0); ddialog->hbox = (GtkBox*) widget; gtk_widget_show_all (GTK_WIDGET (box)); @@ -201,7 +201,7 @@ gtk_container_add (GTK_CONTAINER (scrolled), GTK_WIDGET (ddialog->category_view)); // pack vbox - vbox = (GtkBox*) gtk_vbox_new (FALSE, 2); + vbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_box_pack_start (vbox, gtk_label_new (_("Category")), FALSE, FALSE, 0); gtk_box_pack_start (vbox, (GtkWidget*) scrolled, TRUE, TRUE, 0); gtk_widget_show_all ((GtkWidget*) vbox); diff -ur uget-1.8.0/uget-gtk/UgDownloadForm.c uget-1.8.0.patched/uget-gtk/UgDownloadForm.c --- uget-1.8.0/uget-gtk/UgDownloadForm.c 2011-04-10 11:45:12.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgDownloadForm.c 2011-08-08 11:34:04.824271440 +0200 @@ -193,14 +193,14 @@ // ---------------------------------------------------- // HBox for "Status" and "Login" - hbox = gtk_hbox_new (FALSE, 2); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_table_attach (top_table, hbox, 0, 3, 4, 5, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 1, 1); // ---------------------------------------------------- // frame for Status (start mode) frame = gtk_frame_new (_("Status")); - vbox = gtk_vbox_new (FALSE, 2); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_set_border_width (GTK_CONTAINER (vbox), 2); gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0); @@ -290,7 +290,7 @@ // Connections per server // separator - gtk_table_attach (table, gtk_vseparator_new (), 3, 4, 0, 2, + gtk_table_attach (table, gtk_separator_new (GTK_ORIENTATION_VERTICAL), 3, 4, 0, 2, GTK_FILL | GTK_EXPAND, GTK_FILL, 2, 1); // "Connections per server" - title label widget = gtk_label_new (_("Connections per server")); diff -ur uget-1.8.0/uget-gtk/UgProxyForm.c uget-1.8.0.patched/uget-gtk/UgProxyForm.c --- uget-1.8.0/uget-gtk/UgProxyForm.c 2011-04-07 04:48:24.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgProxyForm.c 2011-08-08 11:34:47.244864319 +0200 @@ -80,13 +80,13 @@ UG_DATA_PROXY_SOCKS4, "SOCKS v4"); gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT (pform->type), UG_DATA_PROXY_SOCKS5, "SOCKS v5"); - hbox = gtk_hbox_new (FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 1); gtk_box_pack_start (GTK_BOX (hbox), pform->type, FALSE, FALSE, 2); g_signal_connect (pform->type, "changed", G_CALLBACK (on_type_changed), pform); - vbox = gtk_vbox_new (FALSE, 0); + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); ug_proxy_form_std_init (pform); gtk_box_pack_end (GTK_BOX (vbox), pform->std, TRUE, TRUE, 0); @@ -139,14 +139,14 @@ pform->port = gtk_spin_button_new_with_range (0.0, 65535.0, 1.0); gtk_entry_set_width_chars (GTK_ENTRY (pform->port), 5); gtk_label_set_mnemonic_widget (GTK_LABEL (widget), pform->port); - hbox = gtk_hbox_new (FALSE, 0); + hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (GTK_BOX (hbox), pform->port, FALSE, FALSE, 0); gtk_table_attach (table, widget, 0, 1, 1, 2, GTK_SHRINK, GTK_SHRINK, 3, 1); gtk_table_attach (table, hbox, 1, 2, 1, 2, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 1, 1); // center separator - gtk_table_attach (table, gtk_vseparator_new (), 2, 3, 0, 2, + gtk_table_attach (table, gtk_separator_new (GTK_ORIENTATION_VERTICAL), 2, 3, 0, 2, GTK_FILL, GTK_FILL, 2, 1); // user label & entry widget = gtk_label_new_with_mnemonic (_("User:")); @@ -351,7 +351,7 @@ gtk_table_attach (table, pfp->file, 1, 2, 1, 2, GTK_FILL | GTK_EXPAND, GTK_SHRINK, 3, 1); - gtk_table_attach (table, gtk_vseparator_new (), 2, 3, 0, 2, + gtk_table_attach (table, gtk_separator_new (GTK_ORIENTATION_VERTICAL), 2, 3, 0, 2, GTK_FILL, GTK_FILL, 2, 1); widget = gtk_label_new_with_mnemonic (_("Element:")); diff -ur uget-1.8.0/uget-gtk/UgScheduleGrid.c uget-1.8.0.patched/uget-gtk/UgScheduleGrid.c --- uget-1.8.0/uget-gtk/UgScheduleGrid.c 2011-04-29 03:34:25.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgScheduleGrid.c 2011-08-08 11:33:27.567752003 +0200 @@ -98,15 +98,15 @@ GtkBox* hbox; GtkBox* vbox; - sgrid->self = gtk_vbox_new (FALSE, 0); + sgrid->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); vbox = (GtkBox*) sgrid->self; // Enable Scheduler - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*)hbox, FALSE, FALSE, 2); widget = gtk_check_button_new_with_mnemonic (_("_Enable Scheduler")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 2); - gtk_box_pack_start (hbox, gtk_hseparator_new (), TRUE, TRUE, 2); + gtk_box_pack_start (hbox, gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), TRUE, TRUE, 2); g_signal_connect (widget, "toggled", G_CALLBACK (on_enable_toggled), sgrid); sgrid->enable = widget; diff -ur uget-1.8.0/uget-gtk/UgSelector.c uget-1.8.0.patched/uget-gtk/UgSelector.c --- uget-1.8.0/uget-gtk/UgSelector.c 2011-04-17 16:14:46.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgSelector.c 2011-08-08 11:33:50.712074543 +0200 @@ -86,10 +86,10 @@ gchar* string; selector->parent = parent; - selector->self = gtk_vbox_new (FALSE, 2); + selector->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); vbox = (GtkBox*) selector->self; - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); string = g_strconcat (_("Base hypertext reference"), " <base href> :", NULL); selector->href_label = gtk_label_new (string); @@ -98,13 +98,13 @@ selector->href_entry = (GtkEntry*) gtk_entry_new (); gtk_box_pack_start (vbox, (GtkWidget*) selector->href_entry, FALSE, FALSE, 1); - selector->href_separator = gtk_hseparator_new (); + selector->href_separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_pack_start (vbox, selector->href_separator, FALSE, FALSE, 1); selector->notebook = (GtkNotebook*) gtk_notebook_new (); gtk_box_pack_start (vbox, (GtkWidget*) selector->notebook, TRUE, TRUE, 1); - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); // select all widget = gtk_button_new_with_mnemonic (_("Mark _All")); @@ -275,7 +275,7 @@ GtkBox* vbox; GtkBox* hbox; - vbox = (GtkBox*) gtk_vbox_new (FALSE, 2); + vbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); // filter view and it's scrolled window gtk_widget_set_size_request ((GtkWidget*) item_view, 120, 120); widget = gtk_scrolled_window_new (NULL, NULL); @@ -287,7 +287,7 @@ gtk_box_pack_start (vbox, widget, TRUE, TRUE, 2); // button sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 2); widget = gtk_button_new_with_label (_("All")); gtk_size_group_add_widget (sizegroup, widget); @@ -335,7 +335,7 @@ gtk_label_new (_("This will reset all marks of URLs.")), FALSE, FALSE, 3); - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, TRUE, TRUE, 1); // filter view ----------------------- diff -ur uget-1.8.0/uget-gtk/UgSettingDialog.c uget-1.8.0.patched/uget-gtk/UgSettingDialog.c --- uget-1.8.0/uget-gtk/UgSettingDialog.c 2011-04-16 09:24:44.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgSettingDialog.c 2011-08-08 11:33:17.307609168 +0200 @@ -65,7 +65,7 @@ // ------------------------------------------------------------------------ // UI settings page - vbox = (GtkBox*) gtk_vbox_new (FALSE, 2); + vbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_set_border_width (GTK_CONTAINER (vbox), 2); gtk_notebook_append_page (dialog->notebook, (GtkWidget*) vbox, gtk_label_new (_("UI Settings"))); @@ -97,13 +97,13 @@ // ------------------------------------------------------------------------ // Others settings page - vbox = (GtkBox*) gtk_vbox_new (FALSE, 2); + vbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 2); gtk_container_set_border_width (GTK_CONTAINER (vbox), 2); gtk_notebook_append_page (dialog->notebook, (GtkWidget*) vbox, gtk_label_new (_("Others"))); ug_auto_save_form_init (&dialog->auto_save); gtk_box_pack_start (vbox, dialog->auto_save.self, FALSE, FALSE, 2); - gtk_box_pack_start (vbox, gtk_hseparator_new (), FALSE, FALSE, 2); + gtk_box_pack_start (vbox, gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), FALSE, FALSE, 2); ug_launch_setting_form_init (&dialog->launch); gtk_box_pack_start (vbox, dialog->launch.self, FALSE, FALSE, 2); diff -ur uget-1.8.0/uget-gtk/UgSettingForm.c uget-1.8.0.patched/uget-gtk/UgSettingForm.c --- uget-1.8.0/uget-gtk/UgSettingForm.c 2011-04-16 09:24:44.000000000 +0200 +++ uget-1.8.0.patched/uget-gtk/UgSettingForm.c 2011-08-08 11:34:22.288515341 +0200 @@ -65,7 +65,7 @@ GtkBox* vbox; GtkBox* hbox; - csform->self = gtk_vbox_new (FALSE, 0); + csform->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); vbox = (GtkBox*) csform->self; // Monitor button widget = gtk_check_button_new_with_mnemonic ( @@ -81,12 +81,12 @@ csform->pattern = (GtkEntry*) entry; // tips - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); gtk_box_pack_end (hbox, gtk_label_new (_("Separate the types with character '|'.")), FALSE, FALSE, 2); - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); gtk_box_pack_end (hbox, gtk_label_new (_("You can use regular expressions here.")), @@ -95,7 +95,7 @@ gtk_box_pack_start (vbox, gtk_label_new (""), FALSE, FALSE, 2); // quiet mode - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 2); widget = gtk_check_button_new_with_mnemonic (_("_Quiet mode")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 0); @@ -141,7 +141,7 @@ GtkWidget* widget; GtkBox* vbox; - uiform->self = gtk_vbox_new (FALSE, 0); + uiform->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); vbox = (GtkBox*) uiform->self; // check button widget = gtk_check_button_new_with_label (_("Show confirmation dialog on close")); @@ -214,10 +214,10 @@ GtkBox* vbox; GtkBox* hbox; - lsform->self = gtk_vbox_new (FALSE, 0); + lsform->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); vbox = (GtkBox*) lsform->self; // active button - hbox = (GtkBox*) gtk_hbox_new (FALSE, 0); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); widget = gtk_check_button_new_with_mnemonic ( _("_Launch default application for specified file types:")); @@ -230,12 +230,12 @@ gtk_box_pack_start (vbox, entry, FALSE, FALSE, 2); lsform->types = (GtkEntry*) entry; // Launch app tips - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); gtk_box_pack_end (hbox, gtk_label_new (_("Separate the types with character '|'.")), FALSE, FALSE, 2); - hbox = (GtkBox*) gtk_hbox_new (FALSE, 2); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, FALSE, 1); gtk_box_pack_end (hbox, gtk_label_new (_("You can use regular expressions here.")), @@ -277,7 +277,7 @@ GtkBox* hbox; GtkWidget* widget; - asform->self = gtk_hbox_new (FALSE, 0); + asform->self = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); hbox = (GtkBox*) asform->self; widget = gtk_check_button_new_with_mnemonic (_("_Auto save")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 0); @@ -346,15 +346,15 @@ GtkBox* hbox; GtkWidget* widget; - psform->self = gtk_vbox_new (FALSE, 0); + psform->self = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); vbox = (GtkBox*) psform->self; - hbox = (GtkBox*) gtk_hbox_new (FALSE, 0); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, TRUE, 2); widget = gtk_check_button_new_with_mnemonic (_("_Enable aria2 plug-in")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 2); - gtk_box_pack_start (hbox, gtk_hseparator_new (), TRUE, TRUE, 2); + gtk_box_pack_start (hbox, gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), TRUE, TRUE, 2); g_signal_connect (widget, "toggled", G_CALLBACK (on_plugin_aria2_toggled), psform); psform->enable = (GtkToggleButton*) widget; @@ -366,7 +366,7 @@ gtk_box_pack_start (vbox, widget, FALSE, FALSE, 3); // URI entry - hbox = (GtkBox*) gtk_hbox_new (FALSE, 0); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, TRUE, 2); widget = gtk_label_new ("URI"); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 2); @@ -374,7 +374,7 @@ gtk_box_pack_start (hbox, widget, TRUE, TRUE, 4); psform->uri = (GtkEntry*) widget; - gtk_box_pack_start (vbox, gtk_hseparator_new (), FALSE, FALSE, 6); + gtk_box_pack_start (vbox, gtk_separator_new (GTK_ORIENTATION_HORIZONTAL), FALSE, FALSE, 6); widget = gtk_check_button_new_with_mnemonic (_("_Launch aria2 on startup")); gtk_box_pack_start (vbox, widget, FALSE, FALSE, 2); @@ -387,7 +387,7 @@ psform->shutdown = (GtkToggleButton*) widget; // path - hbox = (GtkBox*) gtk_hbox_new (FALSE, 0); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, TRUE, 2); widget = gtk_label_new (_("Path")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 2); @@ -395,7 +395,7 @@ gtk_box_pack_start (hbox, widget, TRUE, TRUE, 4); psform->path = (GtkEntry*) widget; // argument - hbox = (GtkBox*) gtk_hbox_new (FALSE, 0); + hbox = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_box_pack_start (vbox, (GtkWidget*) hbox, FALSE, TRUE, 2); widget = gtk_label_new (_("Arguments")); gtk_box_pack_start (hbox, widget, FALSE, FALSE, 2);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor