Commit 66cabd46 authored by Zander's avatar Zander 💥

Disable exporter for this release

parent 342a0b8e
Pipeline #29049 passed with stages
in 1 minute and 31 seconds
......@@ -22,7 +22,8 @@
"sources" : [
{
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/libdazzle.git"
"url" : "https://gitlab.gnome.org/GNOME/libdazzle.git",
"tag": "3.30.0"
}
]
},
......
......@@ -59,13 +59,6 @@
<property name="title" translatable="yes" context="shortcut window">Reload the icon</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
<property name="accelerator">&lt;primary&gt;e</property>
<property name="title" translatable="yes" context="shortcut window">Export the icon</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">True</property>
......
......@@ -48,7 +48,6 @@ namespace IconPreview {
set_accels_for_action ("win.new-window", { "<primary>N" });
set_accels_for_action ("win.recents", { "<primary><shift>O" });
set_accels_for_action ("win.refresh", { "<primary>R" });
set_accels_for_action ("win.export", { "<primary>E" });
set_accels_for_action ("win.shuffle", { "<primary>S" });
set_accels_for_action ("win.menu", { "F10" });
set_accels_for_action ("win.fullscreen", { "F11" });
......
......@@ -208,24 +208,6 @@
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="exportbtn">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Export</property>
</object>
</child>
</object>
<packing>
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
</child>
</template>
......
......@@ -12,9 +12,6 @@ namespace IconPreview {
[GtkChild]
MenuButton menu;
[GtkChild]
MenuButton exportbtn;
const GLib.ActionEntry[] entries = {
{ "open", open },
{ "new-icon", new_icon, "s" },
......@@ -23,7 +20,6 @@ namespace IconPreview {
{ "refresh", refresh },
{ "shuffle", shuffle },
{ "menu", open_menu },
{ "export", open_export },
{ "about", about },
{ "quit", quit }
};
......@@ -124,13 +120,11 @@ namespace IconPreview {
}
private void mode_changed () {
exportbtn.visible = mode != INITIAL;
switch (mode) {
case INITIAL:
title = "Icon Preview";
(lookup_action("refresh") as SimpleAction).set_enabled(false);
(lookup_action("shuffle") as SimpleAction).set_enabled(false);
(lookup_action("export") as SimpleAction).set_enabled(false);
break;
case SYMBOLIC:
_mode_changed(new Symbolic());
......@@ -146,10 +140,6 @@ namespace IconPreview {
view.show();
content.add(view);
content.visible_child = view;
var pop = new Popover(exportbtn);
pop.add(view.exporter);
view.exporter.close.connect(() => pop.popdown());
exportbtn.popover = pop;
if (old is Previewer) {
// Effectivly close the old previewer
old.destroy();
......@@ -157,7 +147,6 @@ namespace IconPreview {
// We have an open file now
(lookup_action("refresh") as SimpleAction).set_enabled(true);
(lookup_action("shuffle") as SimpleAction).set_enabled(true);
(lookup_action("export") as SimpleAction).set_enabled(true);
}
}
......@@ -199,11 +188,6 @@ namespace IconPreview {
recent.clicked();
}
// Open the export popover (win.export)
private void open_export () {
exportbtn.clicked();
}
// Manually reload the current icon (win.refresh)
// Requires:
// The must be an open file to reload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment