CtrlCore: GTK TopWindow::LargeIcon implementation

git-svn-id: svn://ultimatepp.org/upp/trunk@7383 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-05-16 06:24:01 +00:00
parent 034a9bf715
commit fa5883745f
2 changed files with 10 additions and 2 deletions

View file

@ -48,8 +48,15 @@ void TopWindow::SyncCaption()
GuiLock __;
SyncTitle();
if(top) {
GList *icons = NULL;
if(gdk_icon.Set(icon))
gtk_window_set_icon(gtk(), gdk_icon);
icons = g_list_append(icons, gdk_icon);
if(gdk_largeicon.Set(largeicon))
icons = g_list_append(icons, gdk_largeicon);
if(icons != NULL) {
gtk_window_set_icon_list(gtk(), icons);
g_list_free(icons);
}
gtk_window_set_decorated(gtk(), !frameless);
gtk_window_set_urgency_hint(gtk(), urgent);
}

View file

@ -1,5 +1,6 @@
//$ class TopWindow : Ctrl {
ImageGdk gdk_icon;
ImageGdk gdk_largeicon;
bool topmost;
enum { FULLSCREEN = 99 };
@ -11,4 +12,4 @@
static gboolean StateEvent(GtkWidget *widget, GdkEventWindowState *event, gpointer user_data);
friend class Ctrl;
//$ };
//$ };