예제 #1
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	Indicate* _tmp0_;
	Indicate* app;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gtk_init (&args_length1, &args);
	_tmp0_ = indicate_new ();
	app = _tmp0_;
	_tmp1_ = args;
	_tmp1__length1 = args_length1;
	if (_vala_string_array_contains (_tmp1_, _tmp1__length1, "--with-preferences")) {
		PreferencesDialog* _tmp2_;
		PreferencesDialog* dialog;
		PreferencesDialog* _tmp3_;
		Indicate* _tmp4_;
		PreferencesDialog* _tmp5_;
		_tmp2_ = preferences_dialog_new ();
		dialog = _tmp2_;
		_tmp3_ = dialog;
		_tmp4_ = app;
		g_signal_connect (_tmp3_, "preferences-update", (GCallback) _indicate_on_preferences_update_preferences_dialog_preferences_update, _tmp4_);
		_tmp5_ = dialog;
		preferences_dialog_show (_tmp5_);
		_preferences_dialog_unref0 (dialog);
	}
	gtk_main ();
	result = 0;
	_indicate_unref0 (app);
	return result;
}
예제 #2
0
파일: main-window.c 프로젝트: trhura/rookie
static void on_preferences ()
{
	static GtkWidget *dialog = NULL;

	if (dialog == NULL)
		dialog = preferences_dialog_new ();

	gtk_dialog_run (GTK_DIALOG(dialog));
	gtk_widget_hide (dialog);
}
예제 #3
0
void on_preferences1_activate(GtkWidget *widget)
{
    GtkWidget *preferences_dialog = preferences_dialog_new (GTK_WINDOW(main_window.window));
    gtk_widget_show(preferences_dialog);
}