Going to clean this all up a bit
This commit is contained in:
parent
9b6523809e
commit
83d30f67a7
@ -18,8 +18,6 @@
|
||||
#include "mooterm/mooterm-keymap.h"
|
||||
#include "mooterm/mootermpt.h"
|
||||
|
||||
/* must be enough to fit '^' + one unicode character + 0 byte */
|
||||
#define MANY_CHARS 16
|
||||
#define META_MASK GDK_MOD1_MASK
|
||||
|
||||
|
||||
@ -306,8 +304,64 @@ gboolean moo_term_key_release (GtkWidget *widget,
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Mouse handling
|
||||
*/
|
||||
|
||||
void moo_term_set_mouse_tracking (MooTerm *term,
|
||||
int tracking_type)
|
||||
{
|
||||
term_implement_me ();
|
||||
switch (tracking_type)
|
||||
{
|
||||
case MODE_PRESS_TRACKING:
|
||||
case MODE_PRESS_AND_RELEASE_TRACKING:
|
||||
case MODE_HILITE_MOUSE_TRACKING:
|
||||
term->priv->tracking_mouse = TRUE;
|
||||
moo_term_update_pointer (term);
|
||||
break;
|
||||
|
||||
default:
|
||||
term->priv->tracking_mouse = FALSE;
|
||||
moo_term_update_pointer (term);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
gboolean moo_term_button_press (GtkWidget *widget,
|
||||
GdkEventButton *event)
|
||||
{
|
||||
MooTerm *term;
|
||||
|
||||
term = MOO_TERM (widget);
|
||||
|
||||
moo_term_set_pointer_visible (term, TRUE);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
gboolean moo_term_button_release (GtkWidget *widget,
|
||||
GdkEventButton *event)
|
||||
{
|
||||
MooTerm *term;
|
||||
|
||||
term = MOO_TERM (widget);
|
||||
|
||||
moo_term_set_pointer_visible (term, TRUE);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
gboolean moo_term_motion_notify (GtkWidget *widget,
|
||||
GdkEventMotion *event)
|
||||
{
|
||||
MooTerm *term;
|
||||
|
||||
term = MOO_TERM (widget);
|
||||
|
||||
moo_term_set_pointer_visible (term, TRUE);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -47,3 +47,9 @@ void term_selection_clear (MooTerm *term)
|
||||
moo_term_invalidate_all (term);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
char *term_selection_get_text (MooTerm *term)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
</ignoreparts>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description></description>
|
||||
<description/>
|
||||
<secondaryLanguages>
|
||||
<language>C</language>
|
||||
</secondaryLanguages>
|
||||
@ -39,7 +39,7 @@
|
||||
<mainprogram>tests/mterm</mainprogram>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<customdirectory>/</customdirectory>
|
||||
<programargs></programargs>
|
||||
<programargs/>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>true</autocompile>
|
||||
<envvars/>
|
||||
@ -71,13 +71,13 @@
|
||||
<cflags>-O3 -g3</cflags>
|
||||
<cxxflags>-O3 -g3</cxxflags>
|
||||
<envvars/>
|
||||
<topsourcedir></topsourcedir>
|
||||
<cppflags></cppflags>
|
||||
<ldflags></ldflags>
|
||||
<ccompilerbinary></ccompilerbinary>
|
||||
<cxxcompilerbinary></cxxcompilerbinary>
|
||||
<f77compilerbinary></f77compilerbinary>
|
||||
<f77flags></f77flags>
|
||||
<topsourcedir/>
|
||||
<cppflags/>
|
||||
<ldflags/>
|
||||
<ccompilerbinary/>
|
||||
<cxxcompilerbinary/>
|
||||
<f77compilerbinary/>
|
||||
<f77flags/>
|
||||
</optimized>
|
||||
<mingw>
|
||||
<envvars>
|
||||
@ -141,7 +141,7 @@
|
||||
<abortonerror>true</abortonerror>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin></makebin>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
</make>
|
||||
</kdevautoproject>
|
||||
@ -149,10 +149,10 @@
|
||||
<general>
|
||||
<dbgshell>libtool</dbgshell>
|
||||
<programargs>--g-fatal-warnings --debug bash</programargs>
|
||||
<gdbpath></gdbpath>
|
||||
<configGdbScript></configGdbScript>
|
||||
<runShellScript></runShellScript>
|
||||
<runGdbScript></runGdbScript>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>true</floatingtoolbar>
|
||||
@ -217,16 +217,16 @@
|
||||
</kdevdoctreeview>
|
||||
<kdevfilecreate>
|
||||
<filetypes>
|
||||
<type icon="source" ext="g" name="GAP source" create="template" >
|
||||
<type icon="source" ext="g" create="template" name="GAP source" >
|
||||
<descr>A new empty GAP source file</descr>
|
||||
</type>
|
||||
<type icon="source_cpp" ext="cpp" name="C++ Source" create="template" >
|
||||
<type icon="source_cpp" ext="cpp" create="template" name="C++ Source" >
|
||||
<descr>A new empty C++ file.</descr>
|
||||
</type>
|
||||
<type icon="source_h" ext="h" name="C/C++ Header" create="template" >
|
||||
<type icon="source_h" ext="h" create="template" name="C/C++ Header" >
|
||||
<descr>A new empty header file for C/C++.</descr>
|
||||
</type>
|
||||
<type icon="source_c" ext="c" name="C Source" create="template" >
|
||||
<type icon="source_c" ext="c" create="template" name="C Source" >
|
||||
<descr>A new empty C file.</descr>
|
||||
</type>
|
||||
</filetypes>
|
||||
@ -253,7 +253,7 @@
|
||||
</codecompletion>
|
||||
<references/>
|
||||
<creategettersetter>
|
||||
<prefixGet></prefixGet>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
|
Loading…
x
Reference in New Issue
Block a user