193
193
myData.pGetLocationTask = cairo_dock_get_url_data_async (cURL, (GFunc) _on_got_location_data, myApplet);
200
void cd_weather_load_custom_widget (CairoDockModuleInstance *myApplet, GKeyFile* pKeyFile, GSList *pWidgetList)
198
202
if (!myApplet) // if called when the applet is not started
200
204
cd_debug ("%s (%s)\n", __func__, myIcon->cName);
201
205
//\____________ On recupere le widget.
206
CairoDockGroupKeyWidget *pGroupKeyWidget = cairo_dock_gui_find_group_key_widget_in_list (pWidgetList, "Configuration", "location code");
203
209
g_return_if_fail (pCodeEntry != NULL);
210
g_signal_connect (myData.pCodeEntry, "delete", G_CALLBACK (_on_destroyed_code_entry), myApplet); /// TODO: remove it on stop, to handle the case our applet is deactivated while the config window is opened.
205
212
GtkWidget *pWidgetBox = gtk_widget_get_parent (pCodeEntry);