hello, i am a gtk+ 2.0 user since 18 mounths. I
think this is a good
toolkit, and i have some idea for make it better (i think). - A function for create a window that request user
confirmation
when it is closed ("Are you sure" yes,no) gtk_window_add_close_confirm(GtkWindow * window); - Some util function for manage
GtkEntry:
- gtk_entry_set_data_type(GtkEntry * entry, GtkDataType tp); enum GtkDataType { GTK_DATA_TYPE_NUMERIC, /* allows only 0-9 */ GTK_DATA_TYPE_DECIMAL_NUMERIC, /* allows only 0-9,. */ GTK_DATA_UPPERCASE, /* allows only A-Z */ ... }; - gint gtk_entry_get_int(GtkEntry * entry, GError **err) /* return the text in entry in integer. */ - A label with a window, for set back ground color, without using marker. Something that sostiutite the: eventbox = gtk_event_box_new(); gtk_widget_show(eventbox); label = gtk_label_new(""); gtk_container_add(GTK_EVENT_BOX(eventbox),label); gtk_widget_show(label); ... /* setting bg color*/ with: gtk_label_set_has_window(GtkLabel * label, gboolean has_w); /* The same that there is for GtkFrame */ - Some function for show a dialog immediatly:
/* A dialog with "ok" only. */ gtk_show_error_dialog(const gchar * message, const gchar * title); /* A dialog with "ok" only. */ gtk_show_warning_dialog(const gchar * message, const gchar * title); /* A dialog with "ok" only. */ gtk_show_info_dialog(const gchar * message, const gchar * title); - ... and other that can reduce developing time. I think that function like the descripted above can make easy for new user
build application,
that can work under linux and win32 using only gtk+ and glib. If it is a good idea i can develop this function, if i am wrong sorry for have lost your time. thanks, hammer |