Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Oxygen for GTK
Commits
68e42edd
Commit
68e42edd
authored
Apr 01, 2011
by
Hugo Pereira Da Costa
Browse files
update combobox cellview background color to transparent on style-set signal.
CCBUG: 269872
parent
daa2bd96
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/animations/oxygencomboboxdata.cpp
View file @
68e42edd
...
...
@@ -42,6 +42,7 @@ namespace Oxygen
// connect signals
_stateChangeId
.
connect
(
G_OBJECT
(
widget
),
"state-changed"
,
G_CALLBACK
(
stateChangeEvent
),
this
);
_styleSetId
.
connect
(
G_OBJECT
(
widget
),
"style-set"
,
G_CALLBACK
(
styleSetEvent
),
this
);
// initialize cell view
initializeCellView
(
widget
);
...
...
@@ -62,6 +63,7 @@ namespace Oxygen
#endif
_stateChangeId
.
disconnect
();
_styleSetId
.
disconnect
();
// clear pointers to widgets
_target
=
0L
;
...
...
@@ -361,4 +363,8 @@ namespace Oxygen
void
ComboBoxData
::
stateChangeEvent
(
GtkWidget
*
,
GtkStateType
,
gpointer
data
)
{
static_cast
<
ComboBoxData
*>
(
data
)
->
updateCellViewColor
();
}
//________________________________________________________________________________
void
ComboBoxData
::
styleSetEvent
(
GtkWidget
*
,
GtkStyle
*
,
gpointer
data
)
{
static_cast
<
ComboBoxData
*>
(
data
)
->
updateCellViewColor
();
}
}
src/animations/oxygencomboboxdata.h
View file @
68e42edd
...
...
@@ -135,7 +135,7 @@ namespace Oxygen
static
gboolean
enterNotifyEvent
(
GtkWidget
*
,
GdkEventCrossing
*
,
gpointer
);
static
gboolean
leaveNotifyEvent
(
GtkWidget
*
,
GdkEventCrossing
*
,
gpointer
);
static
void
stateChangeEvent
(
GtkWidget
*
,
GtkStateType
,
gpointer
);
static
void
styleSetEvent
(
GtkWidget
*
,
GtkStyle
*
,
gpointer
);
//@}
...
...
@@ -147,9 +147,17 @@ namespace Oxygen
//! drop-down list, if set
GtkWidget
*
_list
;
//!@name signals
//@{
//! state change signal
Signal
_stateChangeId
;
//! style set
Signal
_styleSetId
;
//@}
// handle child registration
class
ChildData
{
...
...
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