gtk-demo: Cosmetic changes
Clean up the code of many examples in minor ways, fix some memory leaks, and avoid the use of dialogs where a regular toplevel works just as well.
This commit is contained in:
		| @ -7,7 +7,6 @@ | ||||
| #include <glib/gi18n.h> | ||||
| #include <gtk/gtk.h> | ||||
|  | ||||
| static GtkWidget *window = NULL; | ||||
| static GtkWidget *spinner_sensitive = NULL; | ||||
| static GtkWidget *spinner_unsensitive = NULL; | ||||
|  | ||||
| @ -28,6 +27,7 @@ on_stop_clicked (GtkButton *button, gpointer user_data) | ||||
| GtkWidget * | ||||
| do_spinner (GtkWidget *do_widget) | ||||
| { | ||||
|   static GtkWidget *window = NULL; | ||||
|   GtkWidget *content_area; | ||||
|   GtkWidget *vbox; | ||||
|   GtkWidget *hbox; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthias Clasen
					Matthias Clasen