diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-01 22:45:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-01 23:02:47 +0800 |
commit | 2607985f6fb66e14d23d2b87eeba1b225ea3fae9 (patch) | |
tree | 38b00f36a1454b207ee47ab9ecdd350fa31f6ead | |
parent | 96144defe29269f9eec1d487effebc1a9ca50f52 (diff) | |
download | gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar.gz gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar.bz2 gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar.lz gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar.xz gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.tar.zst gsoc2013-empathy-2607985f6fb66e14d23d2b87eeba1b225ea3fae9.zip |
dialpad-widget: port to GtkGrid
https://bugzilla.gnome.org/show_bug.cgi?id=662903
-rw-r--r-- | libempathy-gtk/empathy-dialpad-widget.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-dialpad-widget.c b/libempathy-gtk/empathy-dialpad-widget.c index da1eb9192..9baaa4a86 100644 --- a/libempathy-gtk/empathy-dialpad-widget.c +++ b/libempathy-gtk/empathy-dialpad-widget.c @@ -101,7 +101,7 @@ dtmf_dialpad_button_released_cb (GtkWidget *button, static void empathy_dialpad_widget_init (EmpathyDialpadWidget *self) { - GtkWidget *table; + GtkWidget *grid; int i; struct { @@ -134,7 +134,7 @@ empathy_dialpad_widget_init (EmpathyDialpadWidget *self) gtk_box_pack_start (GTK_BOX (self), self->priv->entry, FALSE, FALSE, 3); - table = gtk_table_new (4, 3, TRUE); + grid = gtk_grid_new (); for (i = 0; dtmfbuttons[i].label != NULL; i++) { @@ -164,8 +164,8 @@ empathy_dialpad_widget_init (EmpathyDialpadWidget *self) gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); - gtk_table_attach (GTK_TABLE (table), button, i % 3, i % 3 + 1, - i / 3, i / 3 + 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 1, 1); + gtk_grid_attach (GTK_GRID (grid), button, i % 3, i / 3, + 1, 1); g_object_set_data (G_OBJECT (button), "dtmf-value", GUINT_TO_POINTER (dtmfbuttons[i].event)); @@ -178,7 +178,7 @@ empathy_dialpad_widget_init (EmpathyDialpadWidget *self) G_CALLBACK (dtmf_dialpad_button_released_cb), self); } - gtk_box_pack_start (GTK_BOX (self), table, FALSE, FALSE, 3); + gtk_box_pack_start (GTK_BOX (self), grid, FALSE, FALSE, 3); } GtkWidget * |