Kaydet (Commit) 0dc540e0 authored tarafından Enrico Tröger's avatar Enrico Tröger

Suppress selection changed signal when switching between open files and symbol list.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1948 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 2f08de91
2007-10-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* geany.glade, src/callbacks.c, src/callbacks.h, src/interface.c:
Suppress selection changed signal when switching between open files
and symbol list.
2007-10-15 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* plugins/svndiff.c, plugins/Makefile.am, plugins/makefile.win32,
......
......@@ -1962,6 +1962,7 @@
<property name="scrollable">True</property>
<property name="enable_popup">False</property>
<signal name="switch_page" handler="on_tv_notebook_switch_page" last_modification_time="Sun, 20 Nov 2005 00:41:15 GMT"/>
<signal name="switch_page" handler="on_tv_notebook_switch_page_after" after="yes" last_modification_time="Tue, 16 Oct 2007 07:03:41 GMT"/>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow2">
......
......@@ -61,6 +61,7 @@
#include "tools.h"
#include "project.h"
#include "navqueue.h"
#include "printing.h"
#include "geanyobject.h"
......@@ -806,7 +807,18 @@ on_tv_notebook_switch_page (GtkNotebook *notebook,
guint page_num,
gpointer user_data)
{
//switch_tv_notebook_page = TRUE;
// suppress selection changed signal when switching to the open files list
app->ignore_callback = TRUE;
}
void
on_tv_notebook_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
guint page_num,
gpointer user_data)
{
app->ignore_callback = FALSE;
}
......@@ -1604,7 +1616,9 @@ on_print1_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
gint idx = document_get_cur_idx();
if (! DOC_IDX_VALID(idx))
return;
//printing_print_doc(idx);
document_print(idx);
}
......
......@@ -572,3 +572,9 @@ gboolean
on_entry_goto_line_key_press_event (GtkWidget *widget,
GdkEventKey *event,
gpointer user_data);
void
on_tv_notebook_switch_page_after (GtkNotebook *notebook,
GtkNotebookPage *page,
guint page_num,
gpointer user_data);
......@@ -1581,6 +1581,9 @@ create_window1 (void)
g_signal_connect ((gpointer) notebook3, "switch_page",
G_CALLBACK (on_tv_notebook_switch_page),
NULL);
g_signal_connect_after ((gpointer) notebook3, "switch_page",
G_CALLBACK (on_tv_notebook_switch_page_after),
NULL);
g_signal_connect ((gpointer) notebook1, "switch_page",
G_CALLBACK (on_notebook1_switch_page),
NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment