aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala2
-rw-r--r--src/config.vapi2
-rw-r--r--src/indicator.vapi21
-rw-r--r--src/menubar.vala88
-rw-r--r--src/settings-daemon.vala6
5 files changed, 62 insertions, 57 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 217e23c..eb827b8 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -488,7 +488,7 @@ public class ArcticaGreeter
}
Gtk.init (ref args);
- Ido.init ();
+ // Ido.init ();
log_timer = new Timer ();
Log.set_default_handler (log_cb);
diff --git a/src/config.vapi b/src/config.vapi
index 8fe2441..c1bcac2 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -8,5 +8,5 @@ namespace Config
public const string INDICATOR_FILE_DIR;
public const string PKGDATADIR;
public const string INDICATORDIR;
- public const string USD_BINARY;
+ public const string MSD_BINARY;
}
diff --git a/src/indicator.vapi b/src/indicator.vapi
index 9b28c72..358d0a7 100644
--- a/src/indicator.vapi
+++ b/src/indicator.vapi
@@ -36,7 +36,7 @@ namespace Indicator {
[NoWrapper]
public virtual unowned string get_name_hint ();
public virtual bool get_show_now (Indicator.ObjectEntry entry);
- public virtual int get_position ();
+// public virtual int get_position ();
[NoWrapper]
public virtual void reserved1 ();
[NoWrapper]
@@ -56,11 +56,12 @@ namespace Indicator {
public virtual signal void menu_show (Indicator.ObjectEntry entry, uint timestamp);
public virtual signal void show_now_changed (Indicator.ObjectEntry entry, bool show_now_state);
}
- [CCode (cheader_filename = "libindicator/indicator-ng.h")]
- public class Ng : Object {
- [CCode (has_construct_function = false)]
- public Ng.for_profile (string filename, string profile) throws GLib.Error;
- }
+
+// [CCode (cheader_filename = "libindicator/indicator-ng.h")]
+// public class Ng : Object {
+// [CCode (has_construct_function = false)]
+// public Ng.for_profile (string filename, string profile) throws GLib.Error;
+// }
[Compact]
[CCode (cheader_filename = "gtk/gtk.h,libindicator/indicator.h,libindicator/indicator-desktop-shortcuts.h,libindicator/indicator-image-helper.h,libindicator/indicator-object.h,libindicator/indicator-service.h,libindicator/indicator-service-manager.h")]
public class ObjectEntry {
@@ -159,7 +160,7 @@ namespace Indicator {
public static void image_helper_update (Gtk.Image image, string name);
}
-[CCode (cheader_filename="libido/libido.h", lower_case_cprefix = "ido_")]
-namespace Ido {
- public void init ();
-}
+//[CCode (cheader_filename="libido/libido.h", lower_case_cprefix = "ido_")]
+//namespace Ido {
+// public void init ();
+//}
diff --git a/src/menubar.vala b/src/menubar.vala
index 799cb18..128be17 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -237,35 +237,36 @@ public class MenuBar : Gtk.MenuBar
return a11y_item;
}
- private Indicator.Object? load_indicator_file (string indicator_name)
- {
- string dir = Config.INDICATOR_FILE_DIR;
- string path;
- Indicator.Object io;
-
- /* To stay backwards compatible, use com.canonical.indicator as the default prefix */
- if (indicator_name.index_of_char ('.') < 0)
- path = @"$dir/com.canonical.indicator.$indicator_name";
- else
- path = @"$dir/$indicator_name";
-
- try
- {
- io = new Indicator.Ng.for_profile (path, "desktop_greeter");
- }
- catch (FileError error)
- {
- /* the calling code handles file-not-found; don't warn here */
- return null;
- }
- catch (Error error)
- {
- warning ("unable to load %s: %s", indicator_name, error.message);
- return null;
- }
-
- return io;
- }
+ //private Indicator.Object? load_indicator_file (string indicator_name)
+ //{
+
+ // string dir = Config.INDICATOR_FILE_DIR;
+ // string path;
+ // Indicator.Object io;
+
+ // /* To stay backwards compatible, use com.canonical.indicator as the default prefix */
+ // if (indicator_name.index_of_char ('.') < 0)
+ // path = @"$dir/com.canonical.indicator.$indicator_name";
+ // else
+ // path = @"$dir/$indicator_name";
+
+ // try
+ // {
+ // io = new Indicator.Ng.for_profile (path, "desktop_greeter");
+ // }
+ // catch (FileError error)
+ // {
+ // /* the calling code handles file-not-found; don't warn here */
+ // return null;
+ // }
+ // catch (Error error)
+ // {
+ // warning ("unable to load %s: %s", indicator_name, error.message);
+ // return null;
+ // }
+
+ // return io;
+ //}
private Indicator.Object? load_indicator_library (string indicator_name)
{
@@ -293,10 +294,13 @@ public class MenuBar : Gtk.MenuBar
}
else
{
- var io = load_indicator_file (indicator_name);
+ // var io = load_indicator_file (indicator_name);
+
+ // if (io == null)
+ // io = load_indicator_library (indicator_name);
- if (io == null)
- io = load_indicator_library (indicator_name);
+ // Use the below line of code instead...
+ var io = load_indicator_library (indicator_name);
if (io != null)
{
@@ -318,7 +322,7 @@ public class MenuBar : Gtk.MenuBar
greeter_set_env ("GIO_USE_VFS", "local");
greeter_set_env ("GVFS_DISABLE_FUSE", "1");
- /* Hint to have unity-settings-daemon run in greeter mode */
+ /* Hint to have mate-settings-daemon run in greeter mode */
greeter_set_env ("RUNNING_UNDER_GDM", "1");
/* Let indicators know about our unique dbus name */
@@ -352,17 +356,17 @@ public class MenuBar : Gtk.MenuBar
foreach (var indicator in indicator_list)
load_indicator(indicator);
- indicator_objects.sort((a, b) => {
- int pos_a = a.get_position ();
- int pos_b = b.get_position ();
+ // indicator_objects.sort((a, b) => {
+ // int pos_a = a.get_position ();
+ // int pos_b = b.get_position ();
- if (pos_a < 0)
- pos_a = 1000;
- if (pos_b < 0)
- pos_b = 1000;
+ // if (pos_a < 0)
+ // pos_a = 1000;
+ // if (pos_b < 0)
+ // pos_b = 1000;
- return pos_a - pos_b;
- });
+ // return pos_a - pos_b;
+ // });
debug ("LANG=%s LANGUAGE=%s", Environment.get_variable ("LANG"), Environment.get_variable ("LANGUAGE"));
}
diff --git a/src/settings-daemon.vala b/src/settings-daemon.vala
index 65440e8..6166b25 100644
--- a/src/settings-daemon.vala
+++ b/src/settings-daemon.vala
@@ -156,15 +156,15 @@ public class SettingsDaemon : Object
if (n_names != 0)
return;
- debug ("All bus names acquired, starting unity-settings-daemon");
+ debug ("All bus names acquired, starting mate-settings-daemon");
try
{
- Process.spawn_command_line_async (Config.USD_BINARY);
+ Process.spawn_command_line_async (Config.MSD_BINARY);
}
catch (SpawnError e)
{
- debug ("Could not start unity-settings-daemon: %s", e.message);
+ debug ("Could not start mate-settings-daemon: %s", e.message);
}
}
}