Lines Matching refs:banner

77 static NotificationBanner banner;  variable
89 G_LOCK_DEFINE_STATIC(banner);
101 G_LOCK(banner); in notification_banner_show()
108 G_UNLOCK(banner); in notification_banner_show()
113 if(banner.window) { in notification_banner_destroy()
114 if(banner.entries) { in notification_banner_destroy()
115 g_free(banner.entries); in notification_banner_destroy()
116 banner.entries = NULL; in notification_banner_destroy()
118 gtk_widget_destroy(banner.window); in notification_banner_destroy()
119 banner.window = NULL; in notification_banner_destroy()
124 if(banner.timeout_id) { in notification_banner_destroy()
125 g_source_remove(banner.timeout_id); in notification_banner_destroy()
126 banner.timeout_id = 0; in notification_banner_destroy()
141 if(!banner.window) { in notification_banner_create()
143 banner.window = gtkut_window_new(GTK_WINDOW_TOPLEVEL, "notification_banner"); in notification_banner_create()
144 gtk_window_set_decorated(GTK_WINDOW(banner.window), FALSE); in notification_banner_create()
146 gtk_widget_set_size_request(banner.window, notify_config.banner_width, -1); in notification_banner_create()
148 gtk_widget_set_size_request(banner.window, gdk_screen_width(), -1); in notification_banner_create()
149 gtk_window_set_keep_above(GTK_WINDOW(banner.window), TRUE); in notification_banner_create()
150 gtk_window_set_accept_focus(GTK_WINDOW(banner.window), FALSE); in notification_banner_create()
151 gtk_window_set_skip_taskbar_hint(GTK_WINDOW(banner.window), TRUE); in notification_banner_create()
152 gtk_window_move(GTK_WINDOW(banner.window), in notification_banner_create()
154 g_signal_connect(banner.window, "configure-event", in notification_banner_create()
158 if(banner.entries) { in notification_banner_create()
159 g_free(banner.entries); in notification_banner_create()
160 banner.entries = NULL; in notification_banner_create()
162 gtk_widget_destroy(banner.scrolled_win); in notification_banner_create()
165 gtk_window_stick(GTK_WINDOW(banner.window)); in notification_banner_create()
167 gtk_window_unstick(GTK_WINDOW(banner.window)); in notification_banner_create()
170 banner.scrolled_win = gtk_scrolled_window_new(NULL, NULL); in notification_banner_create()
171 gtk_container_add(GTK_CONTAINER(banner.window), banner.scrolled_win); in notification_banner_create()
172 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(banner.scrolled_win), in notification_banner_create()
177 banner.viewport = viewport; in notification_banner_create()
178 gtk_container_add(GTK_CONTAINER(banner.scrolled_win),viewport); in notification_banner_create()
192 gtk_widget_show_all(banner.window); in notification_banner_create()
211 gtk_widget_show_all(banner.window); in notification_banner_create()
218 (banner.scrolled_win)); in notification_banner_create()
221 banner.scrolling = TRUE; in notification_banner_create()
222 if(banner.timeout_id) { in notification_banner_create()
223 g_source_remove(banner.timeout_id); in notification_banner_create()
224 banner.timeout_id = 0; in notification_banner_create()
226 banner.timeout_id = in notification_banner_create()
230 banner.scrolling = FALSE; in notification_banner_create()
231 if(banner.timeout_id) { in notification_banner_create()
232 g_source_remove(banner.timeout_id); in notification_banner_create()
233 banner.timeout_id = 0; in notification_banner_create()
269 return banner.scrolling; in scroller()
285 return banner.scrolling; in scroller()
302 if(banner.entries) { in create_entrybox()
303 g_free(banner.entries); in create_entrybox()
304 banner.entries = NULL; in create_entrybox()
311 banner.entries = g_new(NotificationBannerEntry, list_length); in create_entrybox()
337 banner.entries[ii].table = gtk_table_new(3, 2, FALSE); in create_entrybox()
338 gtk_container_add(GTK_CONTAINER(ebox),banner.entries[ii].table); in create_entrybox()
341 banner.entries[ii].table); in create_entrybox()
344 banner.entries[ii].table); in create_entrybox()
351 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
355 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
359 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
364 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
368 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
372 gtk_table_attach_defaults(GTK_TABLE(banner.entries[ii].table), in create_entrybox()
374 gtk_table_set_col_spacings(GTK_TABLE(banner.entries[ii].table), 5); in create_entrybox()
391 banner.entries = g_new(NotificationBannerEntry, 1); in create_entrybox()
392 banner.entries[0].table = gtk_table_new(3, 1, FALSE); in create_entrybox()
394 gtk_table_attach_defaults(GTK_TABLE(banner.entries[0].table), in create_entrybox()
397 gtk_table_attach_defaults(GTK_TABLE(banner.entries[0].table), in create_entrybox()
400 gtk_table_attach_defaults(GTK_TABLE(banner.entries[0].table), in create_entrybox()
402 gtk_box_pack_start(GTK_BOX(entrybox), banner.entries[0].table, in create_entrybox()