summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-08-28 01:40:10 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-08-28 01:40:10 -0400
commit383127cd0ba68e549547c1e6c93a56e0c46d455c (patch)
tree544146578d1141b4fb11be32bdb5b16c157de372
parent227fafb93f4eb6f87bbe7f3f80d16e961b689b2c (diff)
downloadgtk+-383127cd0ba68e549547c1e6c93a56e0c46d455c.tar.gz
Clean up unneeded includes
-rw-r--r--gtk/gtkaboutdialog.c1
-rw-r--r--gtk/gtkbutton.c3
-rw-r--r--gtk/gtkdialog.c2
-rw-r--r--gtk/gtkentrycompletion.c2
-rw-r--r--gtk/gtkmenutoolbutton.c3
-rw-r--r--gtk/gtkmessagedialog.c3
-rw-r--r--gtk/gtkmountoperation.c2
-rw-r--r--gtk/gtkprinteroptionwidget.c26
-rw-r--r--gtk/gtkrecentchooserdefault.c3
9 files changed, 15 insertions, 30 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index ae6c91865f..dd21f4ecbe 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -47,7 +47,6 @@
#include "gtkscrolledwindow.h"
#include "gtkstock.h"
#include "gtktextview.h"
-#include "gtkvbox.h"
#include "gtkiconfactory.h"
#include "gtkshow.h"
#include "gtkmainprivate.h"
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index aa3fe63b18..d48eea49fc 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -49,8 +49,7 @@
#include "gtkmain.h"
#include "gtkmarshalers.h"
#include "gtkimage.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkstock.h"
#include "gtkiconfactory.h"
#include "gtkactivatable.h"
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 5dfb7791bb..f743921711 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -34,7 +34,7 @@
#include "gtkbbox.h"
#include "gtklabel.h"
#include "gtkmarshalers.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkmain.h"
#include "gtkintl.h"
#include "gtkbindings.h"
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index b88fa802f3..d3d3a0405e 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -79,7 +79,7 @@
#include "gtktreeview.h"
#include "gtkscrolledwindow.h"
#include "gtksizerequest.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkwindow.h"
#include "gtkentry.h"
#include "gtkmainprivate.h"
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index a0427379b1..59518036b1 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -25,8 +25,7 @@
#include "gtktogglebutton.h"
#include "gtkarrow.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkmenu.h"
#include "gtkmain.h"
#include "gtksizerequest.h"
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index bd3a1306ee..19ab948efc 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -33,8 +33,7 @@
#include "gtkaccessible.h"
#include "gtkbuildable.h"
#include "gtklabel.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkimage.h"
#include "gtkstock.h"
#include "gtkiconfactory.h"
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index c3e4721458..42eb301b91 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -35,7 +35,7 @@
#include "gtkhbox.h"
#include "gtkintl.h"
#include "gtklabel.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
#include "gtkmessagedialog.h"
#include "gtkmountoperation.h"
#include "gtkprivate.h"
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index fdc2e1dac5..840fb26414 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -34,7 +34,7 @@
#include "gtkliststore.h"
#include "gtkradiobutton.h"
#include "gtkstock.h"
-#include "gtktable.h"
+#include "gtkgrid.h"
#include "gtktogglebutton.h"
#include "gtkorientable.h"
#include "gtkprivate.h"
@@ -783,9 +783,9 @@ construct_widgets (GtkPrinterOptionWidget *widget)
{
GtkWidget *label;
- priv->filechooser = gtk_table_new (2, 2, FALSE);
- gtk_table_set_row_spacings (GTK_TABLE (priv->filechooser), 6);
- gtk_table_set_col_spacings (GTK_TABLE (priv->filechooser), 12);
+ priv->filechooser = gtk_grid_new ();
+ gtk_grid_set_row_spacing (GTK_GRID (priv->filechooser), 6);
+ gtk_grid_set_column_spacing (GTK_GRID (priv->filechooser), 12);
/* TODO: make this a gtkfilechooserentry once we move to GTK */
priv->entry = gtk_entry_new ();
@@ -801,26 +801,16 @@ construct_widgets (GtkPrinterOptionWidget *widget)
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->entry);
- gtk_table_attach (GTK_TABLE (priv->filechooser), label,
- 0, 1, 0, 1, GTK_FILL, 0,
- 0, 0);
-
- gtk_table_attach (GTK_TABLE (priv->filechooser), priv->entry,
- 1, 2, 0, 1, GTK_FILL, 0,
- 0, 0);
+ gtk_grid_attach (GTK_GRID (priv->filechooser), label, 0, 0, 1, 1);
+ gtk_grid_attach (GTK_GRID (priv->filechooser), priv->entry, 1, 0, 1, 1);
label = gtk_label_new_with_mnemonic (_("_Save in folder:"));
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->combo);
- gtk_table_attach (GTK_TABLE (priv->filechooser), label,
- 0, 1, 1, 2, GTK_FILL, 0,
- 0, 0);
-
- gtk_table_attach (GTK_TABLE (priv->filechooser), priv->combo,
- 1, 2, 1, 2, GTK_FILL, 0,
- 0, 0);
+ gtk_grid_attach (GTK_GRID (priv->filechooser), label, 0, 1, 1, 1);
+ gtk_grid_attach (GTK_GRID (priv->filechooser), priv->combo, 1, 1, 1, 1);
gtk_widget_show_all (priv->filechooser);
gtk_box_pack_start (GTK_BOX (widget), priv->filechooser, TRUE, TRUE, 0);
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 3ddc36478d..20b66b5bd7 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -1,7 +1,7 @@
/* GTK - The GIMP Toolkit
* gtkrecentchooserdefault.c
* Copyright (C) 2005-2006, Emmanuele Bassi
- *
+ *
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
@@ -58,7 +58,6 @@
#include "gtkseparatormenuitem.h"
#include "gtksizegroup.h"
#include "gtksizerequest.h"
-#include "gtktable.h"
#include "gtktreemodelsort.h"
#include "gtktreemodelfilter.h"
#include "gtktreeselection.h"