~ubuntu-branches/ubuntu/precise/apvlv/precise-201112121632

« back to all changes in this revision

Viewing changes to src/ApvlvDir.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2009-10-07 20:11:00 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007201100-bndp0rl67luhuc26
Tags: 0.0.7.4-1
* New upstream release
* Removed debian/conffiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
 
131
131
  bool ApvlvDir::loadfile (const char *path, bool check)
132
132
  {
133
 
    gchar *realpath;
 
133
    gchar *rpath;
134
134
 
135
135
    if (path == NULL
136
136
        || *path == '\0'
137
 
        || (realpath =
138
 
            g_locale_from_utf8 (path, -1, NULL, NULL, NULL)) == NULL)
 
137
        || (rpath = g_locale_from_utf8 (path, -1, NULL, NULL, NULL)) == NULL)
139
138
      {
140
139
        errp ("path error: %s", path ? path : "No path");
141
140
        return false;
142
141
      }
143
142
 
144
143
    struct stat buf[1];
145
 
    int ret = stat (realpath, buf);
146
 
    g_free (realpath);
 
144
    int ret = stat (rpath, buf);
 
145
    g_free (rpath);
147
146
    if (ret < 0)
148
147
      {
149
148
        errp ("stat error: %d:%s", errno, strerror (errno));
606
605
    sw[3] = sw[1] >> 1;
607
606
    for (unsigned int i = 0; i < AD_STATUS_SIZE; ++i)
608
607
      {
609
 
        gtk_widget_set_usize (mStlab[i], sw[i], h);
 
608
        gtk_widget_set_size_request (mStlab[i], sw[i], h);
610
609
      }
611
610
  }
612
611