[gimp] color-selector-cmyk: kill GtkTable
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] color-selector-cmyk: kill GtkTable
- Date: Sun, 20 May 2018 19:44:48 +0000 (UTC)
commit 4e2b9eb89c9514807f67eb1febd9ac54174bb043
Author: Simon Budig <simon budig de>
Date: Fri May 11 12:47:07 2018 +0200
color-selector-cmyk: kill GtkTable
modules/color-selector-cmyk.c | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/modules/color-selector-cmyk.c b/modules/color-selector-cmyk.c
index bab61e0..0129630 100644
--- a/modules/color-selector-cmyk.c
+++ b/modules/color-selector-cmyk.c
@@ -128,7 +128,7 @@ colorsel_cmyk_class_finalize (ColorselCmykClass *klass)
static void
colorsel_cmyk_init (ColorselCmyk *module)
{
- GtkWidget *table;
+ GtkWidget *grid;
GtkAdjustment *adj;
gint i;
@@ -157,27 +157,26 @@ colorsel_cmyk_init (ColorselCmyk *module)
gtk_box_set_spacing (GTK_BOX (module), 6);
- table = gtk_table_new (4, 4, FALSE);
+ grid = gtk_grid_new ();
- gtk_table_set_row_spacings (GTK_TABLE (table), 1);
- gtk_table_set_col_spacings (GTK_TABLE (table), 2);
- gtk_table_set_col_spacing (GTK_TABLE (table), 0, 0);
+ gtk_grid_set_row_spacing (GTK_GRID (grid), 1);
+ gtk_grid_set_column_spacing (GTK_GRID (grid), 2);
- gtk_box_pack_start (GTK_BOX (module), table, FALSE, FALSE, 0);
- gtk_widget_show (table);
+ gtk_box_pack_start (GTK_BOX (module), grid, FALSE, FALSE, 0);
+ gtk_widget_show (grid);
for (i = 0; i < 4; i++)
{
- adj = gimp_scale_entry_new (GTK_TABLE (table), 1, i,
- gettext (cmyk_labels[i]),
- -1, -1,
- 0.0,
- 0.0, 100.0,
- 1.0, 10.0,
- 0,
- TRUE, 0.0, 0.0,
- gettext (cmyk_tips[i]),
- NULL);
+ adj = gimp_scale_entry_new_grid (GTK_GRID (grid), 1, i,
+ gettext (cmyk_labels[i]),
+ -1, -1,
+ 0.0,
+ 0.0, 100.0,
+ 1.0, 10.0,
+ 0,
+ TRUE, 0.0, 0.0,
+ gettext (cmyk_tips[i]),
+ NULL);
g_signal_connect (adj, "value-changed",
G_CALLBACK (colorsel_cmyk_adj_update),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]