[Xfce4-commits] <postler:master> Omit sentinel null from isnert_column and object.set

Christian Dywan noreply at xfce.org
Sat Jun 26 03:22:03 CEST 2010


Updating branch refs/heads/master
         to 7e75ef0d79fee740537531b03910a3e25f0cdb28 (commit)
       from 1fa4e7d6d2d8bbf8b37c9a590d53d1d1ad76acfc (commit)

commit 7e75ef0d79fee740537531b03910a3e25f0cdb28
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Jun 21 22:13:43 2010 +0200

    Omit sentinel null from isnert_column and object.set

 postler/postler-composer.vala |    2 +-
 postler/postler-content.vala  |    6 +++---
 postler/postler-folders.vala  |    4 ++--
 postler/postler-messages.vala |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/postler/postler-composer.vala b/postler/postler-composer.vala
index f96d9e8..8b0dbc2 100644
--- a/postler/postler-composer.vala
+++ b/postler/postler-composer.vala
@@ -264,7 +264,7 @@ public class Postler.Composer : Gtk.Window {
 
         content.editable = true;
         var settings = content.settings;
-        settings.set ("enable-scripts", true, null);
+        settings.set ("enable-scripts", true);
         if (settings.get_class ().find_property ("enable-spell-checking") != null) {
             string languages = string.joinv (",", Intl.get_language_names ());
             settings.set ("enable-spell-checking", true,
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index fa38fb4..9b697f1 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -78,12 +78,12 @@ public class Postler.Content : WebKit.WebView {
         """;
 
     public Content () {
-        settings.set ("enable-scripts", false, "enable-plugins", false, null);
+        settings.set ("enable-scripts", false, "enable-plugins", false);
         if (settings.get_class ().find_property ("user-agent") != null) {
-            settings.set ("user-agent", Postler.App.get_user_agent (), null);
+            settings.set ("user-agent", Postler.App.get_user_agent ());
         }
         if (settings.get_class ().find_property ("enable-private-browsing") != null) {
-            settings.set ("enable-private-browsing", true, null);
+            settings.set ("enable-private-browsing", true);
         }
         navigation_policy_decision_requested.connect (navigation_decision);
         create_web_view.connect (new_window_created);
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 78a1e90..535a5e6 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -58,9 +58,9 @@ public class Postler.Folders : Gtk.TreeView {
             typeof (string), typeof (string), typeof (string), typeof (AccountInfo));
         set_model (store);
         insert_column_with_attributes (-1, "Icon",
-            new Gtk.CellRendererPixbuf (), "stock-id", Columns.ICON, null);
+            new Gtk.CellRendererPixbuf (), "stock-id", Columns.ICON);
         insert_column_with_attributes (-1, "Folder",
-            new Gtk.CellRendererText (), "text", Columns.NAME, null);
+            new Gtk.CellRendererText (), "text", Columns.NAME);
         GLib.Idle.add (populate);
     }
 
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index 4cc65da..1d0a3b3 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -168,9 +168,9 @@ public class Postler.Messages : Gtk.TreeView {
         get_selection ().set_mode (Gtk.SelectionMode.MULTIPLE);
         get_selection ().changed.connect (selection_changed);
         insert_column_with_attributes (-1, _("Flagged"),
-            new Gtk.CellRendererPixbuf (), "stock-id", Columns.FLAGGED, null);
+            new Gtk.CellRendererPixbuf (), "stock-id", Columns.FLAGGED);
         insert_column_with_attributes (-1, _("Status"),
-            new Gtk.CellRendererPixbuf (), "stock-id", Columns.STATUS, null);
+            new Gtk.CellRendererPixbuf (), "stock-id", Columns.STATUS);
         var column = new Gtk.TreeViewColumn ();
         column.set_title (_("Subject"));
         var renderer_text = new Gtk.CellRendererText ();



More information about the Xfce4-commits mailing list