Search
lxdream.org :: lxdream/src/gui/gtkui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gtkui.c
changeset 450:207461e79f21
prev447:3e095bfcb476
next455:3080881d00d4
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Split config management out to config.[ch]
Manage config filename
Check home dir + sysconfdir for conf file
Initial work on a path settings dialog
file annotate diff log raw
1.1 --- a/src/gui/gtkui.c Tue Oct 16 12:36:29 2007 +0000
1.2 +++ b/src/gui/gtkui.c Wed Oct 17 11:26:45 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gtkui.c,v 1.3 2007-10-16 12:36:29 nkeynes Exp $
1.6 + * $Id: gtkui.c,v 1.4 2007-10-17 11:26:45 nkeynes Exp $
1.7 *
1.8 * Core GTK-based user interface
1.9 *
1.10 @@ -210,3 +210,19 @@
1.11 gdk_colormap_alloc_color(map, &gui_colour_white, TRUE, TRUE);
1.12 gui_fixed_font = pango_font_description_from_string("Courier 10");
1.13 }
1.14 +
1.15 +gint gtk_gui_run_property_dialog( const gchar *title, GtkWidget *panel )
1.16 +{
1.17 + GtkWidget *dialog =
1.18 + gtk_dialog_new_with_buttons(title, main_window_get_frame(main_win),
1.19 + GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
1.20 + GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
1.21 + GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
1.22 + NULL);
1.23 + gint result;
1.24 + gtk_widget_show_all(panel);
1.25 + gtk_container_add( GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), panel );
1.26 + result = gtk_dialog_run( GTK_DIALOG(dialog) );
1.27 + gtk_widget_destroy( dialog );
1.28 + return result;
1.29 +}
.