void ShowURLDialog(void) { urlItem *item; if (URLDialog) gtkRaise(URLDialog); else URLDialog = CreateURLDialog(); item = listMgr(URLLIST_GET, 0); if (item) { g_list_free(urlEntries); urlEntries = NULL; while (item) { urlEntries = g_list_append(urlEntries, (gchar *)item->url); item = item->next; } } if (urlEntries) { gtk_entry_set_text(GTK_ENTRY(urlEntry), urlEntries->data); gtk_combo_set_popdown_strings(GTK_COMBO(urlCombo), urlEntries); } gtk_widget_show(URLDialog); }
/** * @brief Set the layer for a GTK window. * * @param window pointer to a GtkWindow widget */ void gtkSetLayer(GtkWidget *window) { wsWindowLayer(gdk_display, GDK_WINDOW_XWINDOW(window->window), guiApp.videoWindow.isFullScreen); gtkRaise(window); }