diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-01 07:47:38 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-01 07:52:07 +0100 |
commit | 214a023e9160fa008db069f5ec10ce3a4999a4dc (patch) | |
tree | ad2e3c48e95a3264903ef29b9e12e88ffdfed0bc /demos | |
parent | 4232115e22c8ea41d6a3faf89bcaadfc9933d5e3 (diff) | |
download | gtk+-214a023e9160fa008db069f5ec10ce3a4999a4dc.tar.gz |
Deprecate widget flag: GTK_WIDGET_VISIBLE
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'demos')
35 files changed, 49 insertions, 49 deletions
diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index 8ff90651cb..b934be8d2f 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -595,7 +595,7 @@ do_appwindow (GtkWidget *do_widget) update_statusbar (buffer, GTK_STATUSBAR (statusbar)); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index f5c69dd021..6cb5399f6b 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -153,7 +153,7 @@ do_assistant (GtkWidget *do_widget) G_CALLBACK (on_assistant_prepare), NULL); } - if (!GTK_WIDGET_VISIBLE (assistant)) + if (!gtk_widget_get_visible (assistant)) gtk_widget_show (assistant); else { diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c index 317fcf015b..9e795dece6 100644 --- a/demos/gtk-demo/builder.c +++ b/demos/gtk-demo/builder.c @@ -53,7 +53,7 @@ do_builder (GtkWidget *do_widget) G_CALLBACK (gtk_widget_destroyed), &window); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/button_box.c b/demos/gtk-demo/button_box.c index 35c5ab4ff9..a535bf9ce9 100644 --- a/demos/gtk-demo/button_box.c +++ b/demos/gtk-demo/button_box.c @@ -113,7 +113,7 @@ do_button_box (GtkWidget *do_widget) TRUE, TRUE, 5); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c index 5559c5e78d..6ec1517bc5 100644 --- a/demos/gtk-demo/clipboard.c +++ b/demos/gtk-demo/clipboard.c @@ -314,7 +314,7 @@ do_clipboard (GtkWidget *do_widget) gtk_clipboard_set_can_store (clipboard, NULL, 0); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c index 5b4bdd21d9..db5d542df3 100644 --- a/demos/gtk-demo/colorsel.c +++ b/demos/gtk-demo/colorsel.c @@ -125,7 +125,7 @@ do_colorsel (GtkWidget *do_widget) G_CALLBACK (change_color_callback), NULL); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/combobox.c b/demos/gtk-demo/combobox.c index 7b47032bfc..f33d7709c2 100644 --- a/demos/gtk-demo/combobox.c +++ b/demos/gtk-demo/combobox.c @@ -440,7 +440,7 @@ do_combobox (GtkWidget *do_widget) } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/dialog.c b/demos/gtk-demo/dialog.c index 7b682515f3..301ee2f592 100644 --- a/demos/gtk-demo/dialog.c +++ b/demos/gtk-demo/dialog.c @@ -167,7 +167,7 @@ do_dialog (GtkWidget *do_widget) gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry2); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index 6e3b8775af..7c3101a703 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -318,7 +318,7 @@ do_drawingarea (GtkWidget *do_widget) } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/editable_cells.c b/demos/gtk-demo/editable_cells.c index 1bf3f9d3bd..638d13fcdb 100644 --- a/demos/gtk-demo/editable_cells.c +++ b/demos/gtk-demo/editable_cells.c @@ -381,7 +381,7 @@ do_editable_cells (GtkWidget *do_widget) gtk_window_set_default_size (GTK_WINDOW (window), 320, 200); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/entry_buffer.c b/demos/gtk-demo/entry_buffer.c index 2be770e3bf..82f07c99ef 100644 --- a/demos/gtk-demo/entry_buffer.c +++ b/demos/gtk-demo/entry_buffer.c @@ -54,7 +54,7 @@ do_entry_buffer (GtkWidget *do_widget) g_object_unref (buffer); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/entry_completion.c b/demos/gtk-demo/entry_completion.c index 5f1e327a21..f7e61e971b 100644 --- a/demos/gtk-demo/entry_completion.c +++ b/demos/gtk-demo/entry_completion.c @@ -86,7 +86,7 @@ do_entry_completion (GtkWidget *do_widget) gtk_entry_completion_set_text_column (completion, 0); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/expander.c b/demos/gtk-demo/expander.c index 9728fa5f83..acd51ba8fb 100644 --- a/demos/gtk-demo/expander.c +++ b/demos/gtk-demo/expander.c @@ -47,7 +47,7 @@ do_expander (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (expander), label); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c index 17c8ee3814..8b67c05a3a 100644 --- a/demos/gtk-demo/hypertext.c +++ b/demos/gtk-demo/hypertext.c @@ -300,7 +300,7 @@ do_hypertext (GtkWidget *do_widget) gtk_widget_show_all (sw); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } diff --git a/demos/gtk-demo/iconview.c b/demos/gtk-demo/iconview.c index a075a3595a..1cfac12c95 100644 --- a/demos/gtk-demo/iconview.c +++ b/demos/gtk-demo/iconview.c @@ -358,7 +358,7 @@ do_iconview (GtkWidget *do_widget) } } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/iconview_edit.c b/demos/gtk-demo/iconview_edit.c index a58f84cdb3..10ad22507c 100644 --- a/demos/gtk-demo/iconview_edit.c +++ b/demos/gtk-demo/iconview_edit.c @@ -146,7 +146,7 @@ do_iconview_edit (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (window), icon_view); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c index e7866ae3bc..9eaac39c0f 100644 --- a/demos/gtk-demo/images.c +++ b/demos/gtk-demo/images.c @@ -450,7 +450,7 @@ do_images (GtkWidget *do_widget) vbox); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/infobar.c b/demos/gtk-demo/infobar.c index 7743c5fc2f..e5d460254b 100644 --- a/demos/gtk-demo/infobar.c +++ b/demos/gtk-demo/infobar.c @@ -90,7 +90,7 @@ do_infobar (GtkWidget *do_widget) gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/links.c b/demos/gtk-demo/links.c index 569cd91231..08895614ad 100644 --- a/demos/gtk-demo/links.c +++ b/demos/gtk-demo/links.c @@ -70,7 +70,7 @@ do_links (GtkWidget *do_widget) gtk_widget_show (label); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c index 94335afdf8..009cd97993 100644 --- a/demos/gtk-demo/list_store.c +++ b/demos/gtk-demo/list_store.c @@ -272,7 +272,7 @@ do_list_store (GtkWidget *do_widget) G_CALLBACK (window_closed), NULL); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); if (timeout == 0) { diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c index 2e6fe2951c..6e546f379c 100644 --- a/demos/gtk-demo/menus.c +++ b/demos/gtk-demo/menus.c @@ -196,7 +196,7 @@ do_menus (GtkWidget *do_widget) gtk_widget_show (button); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 08654c1c7d..72a51490e1 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -184,7 +184,7 @@ pick_offscreen_child (GdkWindow *offscreen_window, GtkAllocation child_area; double x, y; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { to_child (bin, widget_x, widget_y, &x, &y); @@ -262,7 +262,7 @@ gtk_rotated_bin_realize (GtkWidget *widget) attributes.window_type = GDK_WINDOW_OFFSCREEN; child_requisition.width = child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { attributes.width = bin->child->allocation.width; attributes.height = bin->child->allocation.height; @@ -331,7 +331,7 @@ gtk_rotated_bin_remove (GtkContainer *container, GtkRotatedBin *bin = GTK_ROTATED_BIN (container); gboolean was_visible; - was_visible = GTK_WIDGET_VISIBLE (widget); + was_visible = gtk_widget_get_visible (widget); if (bin->child == widget) { @@ -339,7 +339,7 @@ gtk_rotated_bin_remove (GtkContainer *container, bin->child = NULL; - if (was_visible && GTK_WIDGET_VISIBLE (container)) + if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container))) gtk_widget_queue_resize (GTK_WIDGET (container)); } } @@ -382,7 +382,7 @@ gtk_rotated_bin_size_request (GtkWidget *widget, child_requisition.width = 0; child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) gtk_widget_size_request (bin->child, &child_requisition); s = sin (bin->angle); @@ -416,7 +416,7 @@ gtk_rotated_bin_size_allocate (GtkWidget *widget, allocation->y + border_width, w, h); - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { GtkRequisition child_requisition; GtkAllocation child_allocation; @@ -474,7 +474,7 @@ gtk_rotated_bin_expose (GtkWidget *widget, GtkAllocation child_area; cairo_t *cr; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { pixmap = gdk_offscreen_window_get_pixmap (bin->offscreen_window); child_area = bin->child->allocation; @@ -566,7 +566,7 @@ do_offscreen_window (GtkWidget *do_widget) gtk_container_add (GTK_CONTAINER (bin), button); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index c1f8146599..aa348242fd 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -122,7 +122,7 @@ pick_offscreen_child (GdkWindow *offscreen_window, GtkAllocation child_area; double x, y; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { to_child (bin, widget_x, widget_y, &x, &y); @@ -200,7 +200,7 @@ gtk_mirror_bin_realize (GtkWidget *widget) attributes.window_type = GDK_WINDOW_OFFSCREEN; child_requisition.width = child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { attributes.width = bin->child->allocation.width; attributes.height = bin->child->allocation.height; @@ -269,7 +269,7 @@ gtk_mirror_bin_remove (GtkContainer *container, GtkMirrorBin *bin = GTK_MIRROR_BIN (container); gboolean was_visible; - was_visible = GTK_WIDGET_VISIBLE (widget); + was_visible = gtk_widget_get_visible (widget); if (bin->child == widget) { @@ -277,7 +277,7 @@ gtk_mirror_bin_remove (GtkContainer *container, bin->child = NULL; - if (was_visible && GTK_WIDGET_VISIBLE (container)) + if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container))) gtk_widget_queue_resize (GTK_WIDGET (container)); } } @@ -306,7 +306,7 @@ gtk_mirror_bin_size_request (GtkWidget *widget, child_requisition.width = 0; child_requisition.height = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) gtk_widget_size_request (bin->child, &child_requisition); requisition->width = GTK_CONTAINER (widget)->border_width * 2 + child_requisition.width + 10; @@ -333,7 +333,7 @@ gtk_mirror_bin_size_allocate (GtkWidget *widget, allocation->y + border_width, w, h); - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { GtkRequisition child_requisition; GtkAllocation child_allocation; @@ -378,7 +378,7 @@ gtk_mirror_bin_expose (GtkWidget *widget, cairo_matrix_t matrix; cairo_pattern_t *mask; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { pixmap = gdk_offscreen_window_get_pixmap (bin->offscreen_window); gdk_drawable_get_size (pixmap, &width, &height); @@ -487,7 +487,7 @@ do_offscreen_window2 (GtkWidget *do_widget) gtk_box_pack_start (GTK_BOX (hbox), applybutton, FALSE, FALSE, 0); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c index efd88f21ec..93f1aa1098 100644 --- a/demos/gtk-demo/panes.c +++ b/demos/gtk-demo/panes.c @@ -180,7 +180,7 @@ do_panes (GtkWidget *do_widget) gtk_widget_show_all (vbox); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } diff --git a/demos/gtk-demo/pickers.c b/demos/gtk-demo/pickers.c index 511e2eb495..838c718ef5 100644 --- a/demos/gtk-demo/pickers.c +++ b/demos/gtk-demo/pickers.c @@ -59,7 +59,7 @@ do_pickers (GtkWidget *do_widget) gtk_table_attach_defaults (GTK_TABLE (table), picker, 1, 2, 3, 4); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/pixbufs.c b/demos/gtk-demo/pixbufs.c index 4e11781bbe..d7b7eef3e9 100644 --- a/demos/gtk-demo/pixbufs.c +++ b/demos/gtk-demo/pixbufs.c @@ -260,7 +260,7 @@ do_pixbufs (GtkWidget *do_widget) } } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/rotated_text.c b/demos/gtk-demo/rotated_text.c index 8aa786a5a0..b83b2c302b 100644 --- a/demos/gtk-demo/rotated_text.c +++ b/demos/gtk-demo/rotated_text.c @@ -223,7 +223,7 @@ do_rotated_text (GtkWidget *do_widget) pango_attr_list_unref (attrs); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/search_entry.c b/demos/gtk-demo/search_entry.c index 6269df2765..e0236b1110 100644 --- a/demos/gtk-demo/search_entry.c +++ b/demos/gtk-demo/search_entry.c @@ -268,7 +268,7 @@ do_search_entry (GtkWidget *do_widget) gtk_widget_show_all (menu); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c index 973196298a..e238b95c1f 100644 --- a/demos/gtk-demo/sizegroup.c +++ b/demos/gtk-demo/sizegroup.c @@ -158,7 +158,7 @@ do_sizegroup (GtkWidget *do_widget) G_CALLBACK (toggle_grouping), size_group); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/spinner.c b/demos/gtk-demo/spinner.c index 314c922206..cf82440229 100644 --- a/demos/gtk-demo/spinner.c +++ b/demos/gtk-demo/spinner.c @@ -83,7 +83,7 @@ do_spinner (GtkWidget *do_widget) on_play_clicked (NULL, NULL); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/stock_browser.c b/demos/gtk-demo/stock_browser.c index 54470ddb8c..73a000304c 100644 --- a/demos/gtk-demo/stock_browser.c +++ b/demos/gtk-demo/stock_browser.c @@ -532,7 +532,7 @@ do_stock_browser (GtkWidget *do_widget) NULL); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/textscroll.c b/demos/gtk-demo/textscroll.c index 5f1c360ae5..2733032952 100644 --- a/demos/gtk-demo/textscroll.c +++ b/demos/gtk-demo/textscroll.c @@ -191,7 +191,7 @@ do_textscroll (GtkWidget *do_widget) create_text_view (hbox, FALSE); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else gtk_widget_destroy (window); diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c index 4e98b17f05..f17f880916 100644 --- a/demos/gtk-demo/textview.c +++ b/demos/gtk-demo/textview.c @@ -500,7 +500,7 @@ do_textview (GtkWidget *do_widget) gtk_widget_show_all (vpaned); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show (window); } diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c index 1f779af8b4..e9bc926b15 100644 --- a/demos/gtk-demo/toolpalette.c +++ b/demos/gtk-demo/toolpalette.c @@ -616,7 +616,7 @@ do_toolpalette (GtkWidget *do_widget) gtk_label_new ("Interactive DnD Mode")); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) { gtk_widget_show_all (window); } diff --git a/demos/gtk-demo/tree_store.c b/demos/gtk-demo/tree_store.c index a5c61b595b..e0b208ab79 100644 --- a/demos/gtk-demo/tree_store.c +++ b/demos/gtk-demo/tree_store.c @@ -438,7 +438,7 @@ do_tree_store (GtkWidget *do_widget) gtk_window_set_default_size (GTK_WINDOW (window), 650, 400); } - if (!GTK_WIDGET_VISIBLE (window)) + if (!gtk_widget_get_visible (window)) gtk_widget_show_all (window); else { |