~markjtully/gwibber/foursquareapi20120612-precise

« back to all changes in this revision

Viewing changes to libgwibber-gtk/action-box.vala

  • Committer: Ken VanDine
  • Date: 2012-06-11 03:57:31 UTC
  • Revision ID: ken.vandine@canonical.com-20120611035731-dim3k112h0vzg0w3
Tags: 3.4.2
libgwibber-gtk: Fixed up the GwibberGtkEntry widget's alignment and icon 
search path (LP: #1011392)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
  construct
50
50
  {
51
51
    set_orientation (Gtk.Orientation.HORIZONTAL);
 
52
    var icon_theme = Gtk.IconTheme.get_default ();
 
53
    icon_theme.prepend_search_path (Config.PKGDATADIR + "/ui/icons");
 
54
    // Prepend local icon path if running from a source checkout
 
55
    var local_icon_path = GLib.Path.build_path (Path.DIR_SEPARATOR_S, Environment.get_current_dir (), "data/icons");
 
56
    if (GLib.FileUtils.test (local_icon_path, GLib.FileTest.IS_DIR))
 
57
      icon_theme.prepend_search_path (local_icon_path);
 
58
    local_icon_path = GLib.Path.build_path (Path.DIR_SEPARATOR_S, Environment.get_current_dir (), "../data/icons");
 
59
    if (GLib.FileUtils.test (local_icon_path, GLib.FileTest.IS_DIR))
 
60
      icon_theme.prepend_search_path (local_icon_path);
52
61
  }
53
62
}
54
63