Fix compilation warnings

master
Mike Massonnet 2012-07-15 16:43:49 +02:00
parent 1b785ff83a
commit d4afbebbb0
2 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ cb_label_changed (GObject *object, GParamSpec *pspec, gpointer user_data)
label->count_height++;
}
gtk_widget_set_size_request (label, req.width, req.height);
gtk_widget_set_size_request (widget, req.width, req.height);
}
@ -132,6 +132,6 @@ xnlp_monitor_label_reinit_size_request (XnlpMonitorLabel *label)
label->width = 0;
label->height = 0;
gtk_widget_set_size_request (label, -1, -1);
gtk_widget_set_size_request (GTK_WIDGET (label), -1, -1);
}

View File

@ -416,8 +416,8 @@ static t_global_monitor * monitor_new(XfcePanelPlugin *plugin)
global = g_new(t_global_monitor, 1);
global->timeout_id = 0;
global->ebox = gtk_event_box_new();
gtk_event_box_set_visible_window(global->ebox, FALSE);
gtk_event_box_set_above_child(global->ebox, TRUE);
gtk_event_box_set_visible_window(GTK_EVENT_BOX(global->ebox), FALSE);
gtk_event_box_set_above_child(GTK_EVENT_BOX(global->ebox), TRUE);
gtk_widget_set_has_tooltip(global->ebox, TRUE);
g_signal_connect(global->ebox, "query-tooltip", G_CALLBACK(tooltip_cb), global);
gtk_widget_show(global->ebox);
@ -501,7 +501,7 @@ static void setup_monitor(t_global_monitor *global, gboolean supress_warnings)
/* Show title label? */
if (global->monitor->options.use_label)
{
gtk_label_set_text(global->monitor->label, global->monitor->options.label_text);
gtk_label_set_text(GTK_LABEL(global->monitor->label), global->monitor->options.label_text);
gtk_widget_show(global->monitor->label);
}
else