void lst_rem(List *inputs, List *gadgets, lui_list *lst) { view_hide(lst->view); view_hide(lst->upclick); view_hide(lst->downclick); list_remove(gadgets, (Node *)lst); list_remove(inputs, (Node *)lst->ia); list_remove(inputs, (Node *)lst->up); list_remove(inputs, (Node *)lst->down); }
static gboolean view_deleted (GtkWidget *widget, GdkEvent *event, gpointer data) { WarlockView *view = data; view_hide (view); return TRUE; }
void lst_downclick(lui_list *lst) { if(lst->flags & LUIF_GHOSTED) return; view_show(lst->downclick); if(lst->ondown) { view_hide(lst->view); lst->first = lst->ondown(lst->first, lst->data); if(lst->ondraw) lst->ondraw(lst->first, lst->view->image, lst->data); view_show(lst->view); } }
/* Called when the tray icon is left-clicked * Toggles florence window between visible and hidden. */ void trayicon_on_click(GtkStatusIcon *status_icon, gpointer user_data) { START_FUNC struct trayicon *trayicon=(struct trayicon *)(user_data); if (gtk_widget_get_visible(GTK_WIDGET(trayicon->view->window))) { view_hide(trayicon->view); } else { #ifdef AT_SPI view_show(trayicon->view, NULL); #else view_show(trayicon->view); #endif } END_FUNC }
/* Main draw method, as called by LUI (normally). * A custom ondraw() method could fill the view * with pictures or text. */ void lst_draw(lui_list *lst) { SDL_Rect rect; rect.x = lst->x; rect.y = lst->y; view_hide(lst->view); SDL_BlitSurface(lst->bg, NULL, lst->screen, &rect); if(lst->ondraw) lst->ondraw(lst->first, lst->view->image, lst->data); if(lst->flags & LUIF_GHOSTED) { lst->flags ^= LUIF_GHOSTED; lui_ghost((gadget *)lst); } view_show(lst->view); }
static void hide_views (ply_boot_splash_plugin_t *plugin) { ply_list_node_t *node; node = ply_list_get_first_node (plugin->views); while (node != NULL) { ply_list_node_t *next_node; view_t *view; view = ply_list_node_get_data (node); next_node = ply_list_get_next_node (plugin->views, node); view_hide (view); node = next_node; } }
/* Called when a dbus method is called */ static void service_method_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { START_FUNC guint x, y; struct service *service=(struct service *)user_data; if (g_strcmp0(method_name, "show")==0) { #ifdef AT_SPI view_show(service->view, NULL); #else view_show(service->view); #endif } else if (g_strcmp0(method_name, "move")==0) { g_variant_get(parameters, "(uu)", &x, &y); gtk_window_move(GTK_WINDOW(view_window_get(service->view)), x, y); } else if (g_strcmp0(method_name, "hide")==0) view_hide(service->view); else if (g_strcmp0(method_name, "terminate")==0) service->quit(); else flo_error(_("Unknown dbus method called: <%s>"), method_name); g_dbus_method_invocation_return_value(invocation, NULL); END_FUNC }
void warlock_view_hide (const char *name) { view_hide (get_view (name)); }
/* Same as lst_uprelease() */ void lst_downrelease(lui_list *lst) { if(lst->flags & LUIF_GHOSTED) return; view_hide(lst->downclick); }