Fixed segfault when opening the preferences dialog for the first time from the VTE widget.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1022 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-11-23 15:04:10 +00:00
parent a9722ee94a
commit 76931febcf
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2006-11-23 Enrico Tröger <enrico.troeger@uvena.de>
* src/vte.c: Fixed segfault when opening the preferences dialog for
the first time from the VTE widget.
2006-11-23 Nick Treleaven <nick.treleaven@btinternet.com>
* src/highlighting.c, src/geany.h, doc/geany.docbook,
@ -12,7 +18,7 @@
2006-11-22 Frank Lanitz <frank@frank.uvena.de>
* po/hu.po, src/about.c, THANKS, configure.in:
Added Hungarian translation (Thanks to Gabor Kmetyko aka
Added Hungarian translation (Thanks to Gabor Kmetyko aka
kilo <kg_kilo@freemail.hu>).

View File

@ -31,7 +31,7 @@
#include "vte.h"
#include "msgwindow.h"
#include "support.h"
#include "callbacks.h"
#include "prefs.h"
VteInfo vte_info;
@ -328,10 +328,12 @@ static void vte_popup_menu_clicked(GtkMenuItem *menuitem, gpointer user_data)
}
case 2:
{
GtkWidget *notebook =
lookup_widget(app->prefs_dialog, "notebook2");
GtkWidget *notebook;
dialogs_show_prefs_dialog();
notebook = lookup_widget(app->prefs_dialog, "notebook2");
on_preferences1_activate(menuitem, NULL);
gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook),
gtk_notebook_get_n_pages(GTK_NOTEBOOK(notebook)) - 1);
break;