Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
e62f5038
Commit
e62f5038
authored
Oct 18, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer added
parent
84314bd3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.cpp
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.cpp
+24
-1
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.h
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.h
+5
-1
No files found.
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.cpp
View file @
e62f5038
/*
* Proview $Id: xtt_methodtoolbar_gtk.cpp,v 1.
2 2007-03-20 12:39:1
5 claes Exp $
* Proview $Id: xtt_methodtoolbar_gtk.cpp,v 1.
3 2007-10-18 12:46:3
5 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -36,6 +36,12 @@ XttMethodToolbarGtk::XttMethodToolbarGtk( XNav *xnav) :
}
}
XttMethodToolbarGtk
::~
XttMethodToolbarGtk
()
{
if
(
m_timerid
)
g_source_remove
(
m_timerid
);
}
void
XttMethodToolbarGtk
::
activate_button
(
GtkWidget
*
w
,
gpointer
data
)
{
XttMethodToolbarGtk
*
mt
=
((
xtt_sMethodButtonCb
*
)
data
)
->
mt
;
...
...
@@ -84,6 +90,23 @@ GtkWidget *XttMethodToolbarGtk::build()
}
void
XttMethodToolbarGtk
::
set_sensitive
()
{
if
(
m_timerid
)
g_source_remove
(
m_timerid
);
m_timerid
=
g_timeout_add
(
400
,
set_sensitive_cb
,
this
);
}
gboolean
XttMethodToolbarGtk
::
set_sensitive_cb
(
void
*
data
)
{
XttMethodToolbarGtk
*
toolbar
=
(
XttMethodToolbarGtk
*
)
data
;
toolbar
->
m_timerid
=
0
;
toolbar
->
set_current_sensitive
();
return
FALSE
;
}
void
XttMethodToolbarGtk
::
set_current_sensitive
()
{
int
is_attr
;
pwr_sAttrRef
aref
;
...
...
xtt/lib/xtt/gtk/xtt_methodtoolbar_gtk.h
View file @
e62f5038
/*
* Proview $Id: xtt_methodtoolbar_gtk.h,v 1.
1 2007-01-17 06:18:10
claes Exp $
* Proview $Id: xtt_methodtoolbar_gtk.h,v 1.
2 2007-10-18 12:46:35
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -34,12 +34,16 @@ class XttMethodToolbarGtk : public XttMethodToolbar {
GtkWidget
*
m_toolbar_w
;
GtkWidget
*
m_button_w
[
m_size
];
xtt_sMethodButtonCb
m_cb
[
m_size
];
gint
m_timerid
;
XttMethodToolbarGtk
(
XNav
*
xnav
);
~
XttMethodToolbarGtk
();
GtkWidget
*
build
();
void
set_sensitive
();
void
set_current_sensitive
();
static
void
activate_button
(
GtkWidget
*
w
,
gpointer
data
);
static
gboolean
set_sensitive_cb
(
void
*
data
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment