~bratsche/gdm/gdm-greeter-gtkrc

« back to all changes in this revision

Viewing changes to gui/greeter/greeter.c

  • Committer: Bazaar Package Importer
  • Date: 2008-11-05 23:50:46 UTC
  • Revision ID: jamesw@ubuntu.com-20081105235046-a1f87qv0x87kkdok
Tags: upstream-ubuntu-2.19.4
ImportĀ upstreamĀ versionĀ 2.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1129
1129
  *theme_dir = dir;
1130
1130
 
1131
1131
  info = g_build_filename (dir, "GdmGreeterTheme.desktop", NULL);
1132
 
  if (g_access (info, F_OK) != 0) {
 
1132
  if (g_access (info, R_OK) != 0) {
 
1133
          g_debug ("Could not open %s. The file either doesn't exist or is not readable", info);
1133
1134
          g_free (info);
1134
1135
          info = g_build_filename (dir, "GdmGreeterTheme.info", NULL);
1135
1136
  }
1136
 
  if (g_access (info, F_OK) != 0)
 
1137
  if (g_access (info, R_OK) != 0)
1137
1138
    {
1138
1139
      char *base = g_path_get_basename (in);
1139
1140
      /* just guess the name, we have no info about the theme at
1140
1141
       * this point */
 
1142
      g_debug ("Could not open %s. The file either doesn't exist or is not readable", info);
1141
1143
      g_free (info);
1142
1144
      file = g_strdup_printf ("%s/%s.xml", dir, base);
1143
1145
      g_free (base);
1285
1287
          gdm_set_theme (gdm_gtk_theme);
1286
1288
  }
1287
1289
 
 
1290
  gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
 
1291
                                     GDM_DATADIR G_DIR_SEPARATOR_S "icons");
 
1292
 
1288
1293
  gdm_wm_screen_init (gdm_config_get_int (GDM_KEY_XINERAMA_SCREEN));
1289
1294
  
1290
1295
  r = verify_gdm_version ();