[file-roller] use a GtkGrid instead of a GtkTable for the window layout
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] use a GtkGrid instead of a GtkTable for the window layout
- Date: Thu, 15 Nov 2012 20:44:27 +0000 (UTC)
commit 2434158834117f4b3bbbf894ed2706561b7a61b1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Nov 15 09:18:16 2012 +0100
use a GtkGrid instead of a GtkTable for the window layout
src/fr-window.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index ea82c18..f187989 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -5261,6 +5261,7 @@ fr_window_attach (FrWindow *window,
if (window->priv->contents != NULL)
gtk_widget_destroy (window->priv->contents);
window->priv->contents = child;
+ gtk_widget_set_vexpand (child, TRUE);
break;
case FR_WINDOW_AREA_FILTERBAR:
position = 4;
@@ -5274,13 +5275,11 @@ fr_window_attach (FrWindow *window,
break;
}
- gtk_table_attach (GTK_TABLE (window->priv->layout),
- child,
- 0, 1,
- position, position + 1,
- GTK_EXPAND | GTK_FILL,
- ((area == FR_WINDOW_AREA_CONTENTS) ? GTK_EXPAND : 0) | GTK_FILL,
- 0, 0);
+ gtk_widget_set_hexpand (child, TRUE);
+ gtk_grid_attach (GTK_GRID (window->priv->layout),
+ child,
+ 0, position,
+ 1, 1);
}
@@ -5334,7 +5333,7 @@ fr_window_construct (FrWindow *window)
/* Create the application. */
- window->priv->layout = gtk_table_new (4, 1, FALSE);
+ window->priv->layout = gtk_grid_new ();
gtk_container_add (GTK_CONTAINER (window), window->priv->layout);
gtk_widget_show (window->priv->layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]