[chronojump] Preferences multimedia: nice icons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Preferences multimedia: nice icons
- Date: Tue, 25 Jun 2019 14:15:49 +0000 (UTC)
commit 8a6a83393bd5b5e3fe3f88a2255a3bca8fba6db0
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jun 25 16:15:31 2019 +0200
Preferences multimedia: nice icons
glade/preferences_win.glade | 56 +++++++++++++++++++++++++++++++++++++++++----
src/gui/preferences.cs | 6 +++++
2 files changed, 58 insertions(+), 4 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index bc60c934..33688f45 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -3480,10 +3480,34 @@ Other</property>
</widget>
</child>
<child>
- <widget class="GtkLabel" id="label88">
+ <widget class="GtkHBox" id="hbox47">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Sounds</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkImage" id="image_multimedia_audio">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label88">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Sounds</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="tab_fill">False</property>
@@ -4144,10 +4168,34 @@ Other</property>
</packing>
</child>
<child>
- <widget class="GtkLabel" id="label89">
+ <widget class="GtkHBox" id="hbox31">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Video</property>
+ <property name="spacing">10</property>
+ <child>
+ <widget class="GtkImage" id="image_multimedia_video">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label89">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Video</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="position">1</property>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index f9b07a10..acfe6538 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -161,6 +161,8 @@ public class PreferencesWindow
[Widget] Gtk.ComboBox combo_camera_framerate;
[Widget] Gtk.Label label_no_cameras;
[Widget] Gtk.Label label_webcam_windows;
+ [Widget] Gtk.Image image_multimedia_audio;
+ [Widget] Gtk.Image image_multimedia_video;
[Widget] Gtk.Image image_video_preview;
[Widget] Gtk.CheckButton check_camera_stop_after;
[Widget] Gtk.VBox vbox_camera_stop_after_all;
@@ -329,6 +331,10 @@ public class PreferencesWindow
wd_list = UtilMultimedia.GetVideoDevices();
PreferencesWindowBox.createComboCamera(preferences.videoDevice,
preferences.videoDeviceResolution, preferences.videoDeviceFramerate);
+ pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "audio.png");
+ PreferencesWindowBox.image_multimedia_audio.Pixbuf = pixbuf;
+ pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "videocamera_on.png");
+ PreferencesWindowBox.image_multimedia_video.Pixbuf = pixbuf;
pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_photo_preview.png");
PreferencesWindowBox.image_video_preview.Pixbuf = pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]