[Xfce4-commits] <postler:master> Remove Dashboard implementation
Christian Dywan
noreply at xfce.org
Fri Nov 12 01:46:04 CET 2010
Updating branch refs/heads/master
to 6c19f12393ffa3e2db75357fa4cfe53c6132e214 (commit)
from 6f77fb864dd562fc6e624d98d5a78d75f709c225 (commit)
commit 6c19f12393ffa3e2db75357fa4cfe53c6132e214
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Nov 12 01:26:40 2010 +0100
Remove Dashboard implementation
postler/postler-viewer.vala | 53 -------------------------------------------
1 files changed, 0 insertions(+), 53 deletions(-)
diff --git a/postler/postler-viewer.vala b/postler/postler-viewer.vala
index 6a75f14..f019220 100644
--- a/postler/postler-viewer.vala
+++ b/postler/postler-viewer.vala
@@ -15,8 +15,6 @@ public class Postler.Viewer : Gtk.VBox {
Gtk.VBox message_parts;
Gtk.Toolbar findbar;
Gtk.Entry find_entry;
- public Gtk.ButtonBox dashboard;
- Gtk.EventBox dummy_plugin_widget;
bool allow_external_images;
@@ -61,17 +59,6 @@ public class Postler.Viewer : Gtk.VBox {
find_entry.changed.connect (find_entry_changed);
find_entry.activate.connect (find_entry_changed);
find_entry.focus_out_event.connect (find_entry_unfocus);
-
- dashboard = new Gtk.VButtonBox ();
- dashboard.layout_style = Gtk.ButtonBoxStyle.START;
- dashboard.spacing = 8;
- dashboard.show ();
- dummy_plugin_widget = new Gtk.EventBox ();
- content.create_plugin_widget.connect (create_plugin_widget);
- content.settings.set ("enable-plugins", true);
- content.clear.connect_after ((content) => { show_dashboard (); });
- if (content.n_parts == 0)
- show_dashboard ();
}
void resource_request (WebKit.WebFrame frame, WebKit.WebResource resouce,
@@ -170,45 +157,5 @@ public class Postler.Viewer : Gtk.VBox {
findbar.hide ();
return false;
}
-
- void show_dashboard () {
- message_parts.parent.parent.hide ();
-
- string encoded_logo = "";
- Gdk.Pixbuf pixbuf = null;
- try {
- var theme = Gtk.IconTheme.get_for_screen (Gdk.Screen.get_default ());
- pixbuf = theme.load_icon (STOCK_INTERNET_MAIL, 128, 0);
- } catch (GLib.Error error) { }
- if (pixbuf != null) {
- string buffer;
- size_t buffer_size;
- try {
- if (Gdk.pixbuf_save_to_buffer (pixbuf, out buffer,
- out buffer_size, "png", null, null)) {
- encoded_logo = GLib.base64_encode (buffer, buffer_size);
- }
- } catch (GLib.Error error) { }
- }
-
- content.load_string ("""
- <object type="application/x-gtk-vbox"
- style="width:33%; height:66%"></object>
- <img style="position: absolute; right: 15px; bottom: 15px;"
- src="data:image/png;base64,%s">
- """.
- printf (encoded_logo), "text/html", "UTF-8", "about:blank");
- }
-
- unowned Gtk.Widget create_plugin_widget (string mime_type, string other,
- GLib.HashTable values) {
-
- if (mime_type == "application/x-gtk-vbox") {
- return dashboard;
- }
-
- /* Block any unknown plugins */
- return dummy_plugin_widget;
- }
}
More information about the Xfce4-commits
mailing list