summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-06 02:49:24 +0000
committerDavid Robillard <d@drobilla.net>2008-01-06 02:49:24 +0000
commitec35a800c6c9017c9992d314bc90ec3dec617550 (patch)
tree574978227642bb014e99e774186e6b92ea6a6cce /src
parentef3dbcc324eb9e745758b86053a3e46fa891c7a8 (diff)
downloadpatchage-ec35a800c6c9017c9992d314bc90ec3dec617550.tar.gz
patchage-ec35a800c6c9017c9992d314bc90ec3dec617550.tar.bz2
patchage-ec35a800c6c9017c9992d314bc90ec3dec617550.zip
Use named (themeable) icon for all window icons, desktop menu entry, and about dialog (when installed).
git-svn-id: http://svn.drobilla.net/lad/patchage@1016 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp3
-rw-r--r--src/patchage.glade4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 59b8cfa..59a5a4d 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -21,6 +21,7 @@
#include <pthread.h>
#include <libgnomecanvasmm.h>
#include <libglademm/xml.h>
+#include <gtk/gtkwindow.h>
#include <jack/statistics.h>
#include <raul/SharedPtr.hpp>
@@ -146,6 +147,8 @@ Patchage::Patchage(int argc, char** argv)
Glib::set_application_name("Patchage");
_about_win->property_program_name() = "Patchage";
+ _about_win->property_logo_icon_name() = "patchage";
+ gtk_window_set_default_icon_name("patchage");
gtkmm_set_width_for_given_text(*_buffer_size_combo, "4096 frames", 40);
diff --git a/src/patchage.glade b/src/patchage.glade
index d650225..c88e228 100644
--- a/src/patchage.glade
+++ b/src/patchage.glade
@@ -5,7 +5,6 @@
<widget class="GtkWindow" id="main_win">
<property name="border_width">1</property>
<property name="title" translatable="yes">Patchage</property>
- <property name="icon">patchage.svg</property>
<child>
<widget class="GtkVBox" id="main_vbox">
<property name="visible">True</property>
@@ -732,7 +731,6 @@ along with Patchage; if not, write to the Free Software Foundation, Inc.,
</property>
<property name="authors">Dave Robillard &lt;dave@drobilla.net&gt;</property>
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
- <property name="logo">patchage.svg</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
<child internal-child="action_area">
@@ -755,7 +753,6 @@ along with Patchage; if not, write to the Free Software Foundation, Inc.,
<property name="default_width">400</property>
<property name="default_height">200</property>
<property name="destroy_with_parent">True</property>
- <property name="icon">patchage.svg</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
@@ -869,7 +866,6 @@ along with Patchage; if not, write to the Free Software Foundation, Inc.,
<property name="border_width">5</property>
<property name="title" translatable="yes">Patchage - Messages</property>
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
- <property name="icon">patchage.svg</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="has_separator">False</property>
<child internal-child="vbox">