summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-03-14 22:15:13 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-03-14 22:15:13 +0800
commitbc53f574ccc06a5366ccb8c8f0fa558836e68d00 (patch)
tree4cdc2eacc29ad9a9b4a9e73e6049c96345998c4b
parentf3070c32ba428935ef2c69888d0194e2ae31e777 (diff)
downloademerald-bc53f574ccc06a5366ccb8c8f0fa558836e68d00.tar.gz
emerald-bc53f574ccc06a5366ccb8c8f0fa558836e68d00.tar.bz2
[PATCH] Fix GTK+ Compatability
-rw-r--r--libengine/themer.c4
-rw-r--r--src/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libengine/themer.c b/libengine/themer.c
index e17bca8..277b61d 100644
--- a/libengine/themer.c
+++ b/libengine/themer.c
@@ -461,7 +461,7 @@ gboolean get_bool(SettingItem * item)
}
gdouble get_float(SettingItem * item)
{
- if(!strcmp(GTK_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
+ if(!strcmp(G_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
return gtk_spin_button_get_value((GtkSpinButton *)item->widget);
}
else {
@@ -647,7 +647,7 @@ void set_bool(SettingItem * item, gboolean b)
}
void set_float(SettingItem * item, gdouble f)
{
- if(!strcmp(GTK_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
+ if(!strcmp(G_OBJECT_TYPE_NAME(item->widget),"GtkSpinButton")) {
gtk_spin_button_set_value((GtkSpinButton *)item->widget, f);
}
else {
diff --git a/src/main.c b/src/main.c
index 5acfe03..e8dba53 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3757,7 +3757,7 @@ static void show_tooltip(const char *text)
static void hide_tooltip(void)
{
- if (GTK_WIDGET_VISIBLE(tip_window))
+ if (gtk_widget_get_visible(tip_window))
g_get_current_time(&tooltip_last_popdown);
gtk_widget_hide(tip_window);