diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-06 22:33:32 +0000 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-06 22:33:32 +0000 |
commit | 30533f03970b90ce333d737ac5a97513bcd9d62e (patch) | |
tree | fde4ccc46730c10daf9ff5b1467bb43fd3c26fb5 /gtk | |
parent | 01c3cd84f5f82b41e6e7f47c55e18d91c8c48d2c (diff) | |
download | gtk+-30533f03970b90ce333d737ac5a97513bcd9d62e.tar.gz |
Added function to set the homogeneous flag of the table (needed by derived
1998-04-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtktable.h:
* gtk/gtktable.c (gtk_table_set_homogeneous): Added function to
set the homogeneous flag of the table (needed by derived widgets
and such).
1998-04-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkradiobutton.h: Add prototype for gtk_radio_button_new_with_label_from_widget.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkradiobutton.h | 2 | ||||
-rw-r--r-- | gtk/gtktable.c | 13 | ||||
-rw-r--r-- | gtk/gtktable.h | 2 |
3 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkradiobutton.h b/gtk/gtkradiobutton.h index 5c872ab278..fbf3d3280c 100644 --- a/gtk/gtkradiobutton.h +++ b/gtk/gtkradiobutton.h @@ -54,6 +54,8 @@ GtkWidget* gtk_radio_button_new (GSList *group); GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *group); GtkWidget* gtk_radio_button_new_with_label (GSList *group, const gchar *label); +GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *group, + const gchar *label); GSList* gtk_radio_button_group (GtkRadioButton *radio_button); void gtk_radio_button_set_group (GtkRadioButton *radio_button, GSList *group); diff --git a/gtk/gtktable.c b/gtk/gtktable.c index 3f92608e2a..bb19e1be7a 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -341,6 +341,19 @@ gtk_table_set_col_spacings (GtkTable *table, gtk_widget_queue_resize (GTK_WIDGET (table)); } +void +gtk_table_set_homogeneous (GtkTable *table, + gint homogeneous) +{ + g_return_if_fail (table != NULL); + g_return_if_fail (GTK_IS_TABLE (table)); + + table->homogeneous = (homogeneous != 0); + + if (GTK_WIDGET_VISIBLE (table)) + gtk_widget_queue_resize (GTK_WIDGET (table)); +} + static void gtk_table_finalize (GtkObject *object) diff --git a/gtk/gtktable.h b/gtk/gtktable.h index afd2cd2bdc..dd2b946471 100644 --- a/gtk/gtktable.h +++ b/gtk/gtktable.h @@ -117,6 +117,8 @@ void gtk_table_set_row_spacings (GtkTable *table, gint spacing); void gtk_table_set_col_spacings (GtkTable *table, gint spacing); +void gtk_table_set_homogeneous (GtkTable *table, + gint homogeneous); #ifdef __cplusplus |