diff libgui/src/main-window.cc @ 17619:4288b90f18c4

icons for news and release notes widgets * letter_logo_NewsDockWidget.png, graphic_logo_NewsDockWidget.png, letter_logo_ReleaseWidget.png, graphic_logo_ReleaseWidget.png: new icons * libgui/module.mk: new icons files added * resource.qrc: new icons files added * main-window.cc(display_url_in_window): set window title and icon; (notice_settings): set the desired icon for the release notes widget * main-window.h: new variable for icon of release notes widget
author Torsten <ttl@justmail.de>
date Wed, 09 Oct 2013 21:06:40 +0200
parents 9abb1422d60b
children 482222fe5b35
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Wed Oct 09 13:53:12 2013 -0400
+++ b/libgui/src/main-window.cc	Wed Oct 09 21:06:40 2013 +0200
@@ -268,6 +268,8 @@
   vlayout->addWidget (browser);
 
   w->setLayout (vlayout);
+  w->setWindowTitle (tr ("Octave Release Notes"));
+  w->setWindowIcon (QIcon (_release_notes_icon));
   w->show ();
   w->raise ();
   w->activateWindow ();
@@ -368,6 +370,11 @@
           widget->setWindowIcon (QIcon (icon));
         }
     }
+  if (widget_icon_data[icon_set_found].name != "NONE")
+     _release_notes_icon = widget_icon_data[icon_set_found].path
+                           + "ReleaseWidget.png";
+  else
+     _release_notes_icon = ":/actions/icons/logo.png";
 
   int icon_size = settings->value ("toolbar_icon_size",24).toInt ();
   _main_tool_bar->setIconSize (QSize (icon_size,icon_size));