~unity-team/bamf/bamf-0.3

« back to all changes in this revision

Viewing changes to src/bamf-window.c

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-10-10 19:17:29 UTC
  • mfrom: (489.2.8 bamf-trunk)
  • Revision ID: tarmac-20121010191729-ztpozswne3vuajfz
BamfMatcher: add support for libreoffice Base, and libreoffice matching tests. Fixes: https://bugs.launchpad.net/bugs/1063862. Approved by Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
}
233
233
 
234
234
char *
235
 
bamf_window_get_xprop (BamfWindow *self, const char* prop)
 
235
bamf_window_get_string_hint (BamfWindow *self, const char* prop)
236
236
{
237
237
  g_return_val_if_fail (BAMF_IS_WINDOW (self), NULL);
238
 
  return bamf_legacy_window_get_utf8_xprop(self->priv->legacy_window, prop);
 
238
  return bamf_legacy_window_get_hint (self->priv->legacy_window, prop);
239
239
}
240
240
 
241
241
BamfWindowMaximizationType
334
334
                      const gchar *prop,
335
335
                      BamfWindow *self)
336
336
{
337
 
  char *bus_name = bamf_window_get_xprop (self, prop);
 
337
  char *hint = bamf_window_get_string_hint (self, prop);
338
338
  g_dbus_method_invocation_return_value (invocation,
339
 
                                         g_variant_new ("(s)", bus_name ? bus_name : ""));
 
339
                                         g_variant_new ("(s)", hint ? hint : ""));
340
340
 
341
 
  g_free (bus_name);
 
341
  g_free (hint);
342
342
 
343
343
  return TRUE;
344
344
}