[pitivi] greeter: Update logo
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] greeter: Update logo
- Date: Sat, 5 Oct 2019 05:56:26 +0000 (UTC)
commit 2b2437254d29205b8185bd19d59205a274abff5f
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Mon Sep 30 23:50:32 2019 +0200
greeter: Update logo
data/pixmaps/pitivi.png | Bin 47256 -> 0 bytes
data/ui/greeter.ui | 6 ++----
pitivi/greeterperspective.py | 5 +++++
3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/greeter.ui b/data/ui/greeter.ui
index 51e5b77d..48980980 100644
--- a/data/ui/greeter.ui
+++ b/data/ui/greeter.ui
@@ -211,11 +211,9 @@
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<child>
- <object class="GtkImage">
- <property name="visible">True</property>
+ <object class="GtkImage" id="logo">
+ <property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="icon_name">pitivi</property>
- <property name="icon_size">0</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/pitivi/greeterperspective.py b/pitivi/greeterperspective.py
index 44231b2d..cff5ee20 100644
--- a/pitivi/greeterperspective.py
+++ b/pitivi/greeterperspective.py
@@ -120,6 +120,11 @@ class GreeterPerspective(Perspective):
builder = Gtk.Builder()
builder.add_from_file(os.path.join(get_ui_dir(), "greeter.ui"))
+ logo = builder.get_object("logo")
+ icon_theme = Gtk.IconTheme.get_default()
+ pixbuf = icon_theme.load_icon("org.pitivi.Pitivi", 256, Gtk.IconLookupFlags.FORCE_SIZE)
+ logo.set_from_pixbuf(pixbuf)
+
self.toplevel_widget = builder.get_object("toplevel_vbox")
self.toplevel_widget.drag_dest_set(
Gtk.DestDefaults.ALL, [URI_TARGET_ENTRY], Gdk.DragAction.COPY)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]