This is an automated email from the git hooks/post-receive script. landry pushed a commit to branch master in repository panel-plugins/xfce4-genmon-plugin.
commit 9c78e7270b1195f9979c803d199406656c07a7f9 Author: ToZ <toz@localhost.localdomain> Date: Mon May 16 20:05:13 2016 -0400 Remove GtkTooltip and use gtk_widget_set_tooltip_text instead --- panel-plugin/config_gui.c | 35 ++++++++++++++++++++--------------- panel-plugin/main.c | 11 ++++++----- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/panel-plugin/config_gui.c b/panel-plugin/config_gui.c index c736fe4..4f199b1 100644 --- a/panel-plugin/config_gui.c +++ b/panel-plugin/config_gui.c @@ -68,9 +68,9 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1, GtkWidget *hbox4; GtkWidget *image2; GtkWidget *label11; - GtkTooltips *tooltips; + //GtkTooltips *tooltips; - tooltips = gtk_tooltips_new (); + //tooltips = gtk_tooltips_new (); table1 = gtk_table_new (3, 2, FALSE); gtk_widget_show (table1); @@ -89,9 +89,10 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1, gtk_table_attach (GTK_TABLE (table1), wTF_Cmd, 1, 2, 0, 1, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); - gtk_tooltips_set_tip (tooltips, wTF_Cmd, - _("Input the shell command to spawn, then press <Enter>"), - NULL); + //gtk_tooltips_set_tip (tooltips, wTF_Cmd, + // _("Input the shell command to spawn, then press <Enter>"), + // NULL); + gtk_widget_set_tooltip_text (wTF_Cmd, "Input the shell command to spawn, then press <Enter>"); gtk_entry_set_max_length (GTK_ENTRY (wTF_Cmd), 128); eventbox1 = gtk_event_box_new (); @@ -107,9 +108,10 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1, wSc_Period = gtk_spin_button_new (GTK_ADJUSTMENT (wSc_Period_adj), .25, 2); gtk_widget_show (wSc_Period); gtk_container_add (GTK_CONTAINER (alignment1), wSc_Period); - gtk_tooltips_set_tip (tooltips, wSc_Period, - _("Interval between 2 consecutive spawns"), - NULL); + //gtk_tooltips_set_tip (tooltips, wSc_Period, + // _("Interval between 2 consecutive spawns"), + // NULL); + gtk_widget_set_tooltip_text (wSc_Period, "Interval between 2 consecutive spawns"); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (wSc_Period), TRUE); label2 = gtk_label_new (_("Period (s) ")); @@ -125,17 +127,19 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1, gtk_table_attach (GTK_TABLE (table1), wTB_Title, 0, 1, 1, 2, (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0); - gtk_tooltips_set_tip (tooltips, wTB_Title, _("Tick to display label"), - NULL); + //gtk_tooltips_set_tip (tooltips, wTB_Title, _("Tick to display label"), + // NULL); + gtk_widget_set_tooltip_text (wTB_Title, "Tick to display label"); wTF_Title = gtk_entry_new (); gtk_widget_show (wTF_Title); gtk_table_attach (GTK_TABLE (table1), wTF_Title, 1, 2, 1, 2, (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0), 0, 0); - gtk_tooltips_set_tip (tooltips, wTF_Title, - _("Input the plugin label, then press <Enter>"), - NULL); + //gtk_tooltips_set_tip (tooltips, wTF_Title, + // _("Input the plugin label, then press <Enter>"), + // NULL); + gtk_widget_set_tooltip_text (wTF_Title, "Input the plugin label, then press <Enter>"); gtk_entry_set_max_length (GTK_ENTRY (wTF_Title), 16); gtk_entry_set_text (GTK_ENTRY (wTF_Title), _("(genmon)")); @@ -146,8 +150,9 @@ int genmon_CreateConfigGUI (GtkWidget *vbox1, wPB_Font = gtk_button_new (); gtk_widget_show (wPB_Font); gtk_box_pack_start (GTK_BOX (vbox1), wPB_Font, FALSE, FALSE, 0); - gtk_tooltips_set_tip (tooltips, wPB_Font, _("Press to change font"), - NULL); + //gtk_tooltips_set_tip (tooltips, wPB_Font, _("Press to change font"), + // NULL); + gtk_widget_set_tooltip_text (wPB_Font, "Press to change font"); gtk_widget_set_halign(GTK_CONTAINER (wPB_Font), GTK_ALIGN_START); diff --git a/panel-plugin/main.c b/panel-plugin/main.c index 3d2a52e..12a2eae 100644 --- a/panel-plugin/main.c +++ b/panel-plugin/main.c @@ -106,7 +106,7 @@ static int DisplayCmdOutput (struct genmon_t *p_poPlugin) /* Launch the command, get its output and display it in the panel-docked text field */ { - static GtkTooltips *s_poToolTips = 0; + //static GtkTooltips *s_poToolTips = 0; struct param_t *poConf = &(p_poPlugin->oConf.oParam); struct monitor_t *poMonitor = &(p_poPlugin->oMonitor); @@ -115,8 +115,8 @@ static int DisplayCmdOutput (struct genmon_t *p_poPlugin) char *end; int newVersion=0; - if (!s_poToolTips) - s_poToolTips = gtk_tooltips_new (); + //if (!s_poToolTips) + // s_poToolTips = gtk_tooltips_new (); g_free (p_poPlugin->acValue); if (poConf->acCmd[0]) @@ -229,8 +229,9 @@ static int DisplayCmdOutput (struct genmon_t *p_poPlugin) "Period (s): %d", poConf->acTitle, poConf->acCmd, poConf->iPeriod_ms / 1000); - gtk_tooltips_set_tip (s_poToolTips, GTK_WIDGET (poMonitor->wEventBox), - acToolTips, 0); + //gtk_tooltips_set_tip (s_poToolTips, GTK_WIDGET (poMonitor->wEventBox), + // acToolTips, 0); + gtk_widget_set_tooltip_text (GTK_WIDGET (poMonitor->wEventBox),acToolTips); g_free (acToolTips); return (0); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits