index c3bcefa4950b7c4b9a7df87369ac6a139835f1b8..ecec849796ae39937a19ee16159e285dd4cabc25 100644 (file)
#define __SPW_UTILITIES_C__
-/*
+/*
* Inkscape Widget Utilities
- *
+ *
* Authors:
* Bryce W. Harrington <brycehar@bryceharrington.com>
* bulia byak <buliabyak@users.sf.net>
#include "helper/unit-menu.h"
-/**
- * Creates a label widget with the given text, at the given col, row
+/**
+ * Creates a label widget with the given text, at the given col, row
* position in the table.
*/
GtkWidget *
g_assert(label_widget != NULL);
gtk_misc_set_alignment (GTK_MISC (label_widget), 1.0, 0.5);
gtk_widget_show (label_widget);
- gtk_table_attach (GTK_TABLE (table), label_widget, col, col+1, row, row+1,
+ gtk_table_attach (GTK_TABLE (table), label_widget, col, col+1, row, row+1,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions)0, 4, 0);
return label_widget;
}
hb = gtk_hbox_new (FALSE, 4);
g_assert(hb != NULL);
gtk_widget_show (hb);
- gtk_table_attach (GTK_TABLE (table), hb, col, col+width, row, row+1,
+ gtk_table_attach (GTK_TABLE (table), hb, col, col+width, row, row+1,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions)0, 0, 0);
return hb;
}
spw_label(table, label_text, 0, row);
gtk_widget_show (selector);
- gtk_table_attach (GTK_TABLE (table), selector, 1, 2, row, row+1,
+ gtk_table_attach (GTK_TABLE (table), selector, 1, 2, row, row+1,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions)0, 0, 0);
gtk_object_set_data (GTK_OBJECT (dialog), key, selector);
return selector;
/**
* Creates a unit selector widget, used for selecting whether one wishes
- * to measure screen elements in millimeters, points, etc. This is a
+ * to measure screen elements in millimeters, points, etc. This is a
* compound unit that includes a label as well as the dropdown selector.
*/
GtkWidget *
sb = gtk_spin_button_new (GTK_ADJUSTMENT (a), 1.0, 4);
g_assert(sb != NULL);
gtk_widget_show (sb);
- gtk_table_attach (GTK_TABLE (table), sb, 1, 2, row, row+1,
+ gtk_table_attach (GTK_TABLE (table), sb, 1, 2, row, row+1,
(GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions)0, 0, 0);
g_signal_connect (G_OBJECT (a), "value_changed", cb, dialog);
return sb;
r = gtk_object_get_data (GTK_OBJECT(w), (gchar *) key);
}
if (r) return r;
-
+
if (GTK_IS_CONTAINER(w)) {
GList *ch = gtk_container_get_children (GTK_CONTAINER(w));
for (GList *i = ch; i != NULL; i = i->next) {
r = (gchar *) gtk_object_get_data (GTK_OBJECT(w), key);
}
if (r && !strcmp (r, value)) return w;
-
+
if (GTK_IS_CONTAINER(w)) {
GList *ch = gtk_container_get_children (GTK_CONTAINER(w));
for (GList *i = ch; i != NULL; i = i->next) {