]> Dogcows Code - chaz/openbox/commitdiff
Change "plain" to "exact" for If's <title>
authorMikael Magnusson <mikachu@gmail.com>
Sun, 11 Aug 2013 17:26:52 +0000 (19:26 +0200)
committerDana Jansens <danakj@orodu.net>
Sun, 11 Aug 2013 17:44:48 +0000 (13:44 -0400)
CHANGELOG
openbox/actions/if.c

index fe81a85951a32aec7ade7506effbc274a1946873..01798feff5f92fe5f0cd72896fb7b4c40e9eb357 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,7 +15,7 @@
   * Correctly interface with latest gnome-session for Gnome/Openbox X sessions.
   * Allow third-party control of window opacity in compositing managers.
   * Improved themeing options. Contributed by Dave Foster.
-  * Add <monitor>, <title type="regex">, <title type="plain"> and
+  * Add <monitor>, <title type="regex">, <title type="exact"> and
     <activedesktop> options to If action.
   * Addresses bugs #4661, #5506, #5186, #5758, #5410, #5228, #5277, #5731,
     #5746, #5737, #5419, #5721, #5711, #5385, #5500, #4992, #5443, #5518,
index fd1280d2c1fece54e376e14a79a87cf5fb08e6e5..3f4c4d64f72c15d5f1df8fcb9baa10045d772ab5 100644 (file)
@@ -32,7 +32,7 @@ typedef struct {
     guint    client_monitor;
     GPatternSpec *matchtitle;
     GRegex *regextitle;
-    gchar  *plaintitle;
+    gchar  *exacttitle;
     GSList *thenacts;
     GSList *elseacts;
 } Options;
@@ -102,8 +102,8 @@ static gpointer setup_func(xmlNodePtr node)
                 o->matchtitle = g_pattern_spec_new(s);
             } else if (type && !g_ascii_strcasecmp(type, "regex")) {
                 o->regextitle = g_regex_new(s, 0, 0, NULL);
-            } else if (type && !g_ascii_strcasecmp(type, "plain")) {
-                o->plaintitle = g_strdup(s);
+            } else if (type && !g_ascii_strcasecmp(type, "exact")) {
+                o->exacttitle = g_strdup(s);
             }
             g_free(s);
         }
@@ -152,8 +152,8 @@ static void free_func(gpointer options)
         g_pattern_spec_free(o->matchtitle);
     if (o->regextitle)
         g_regex_unref(o->regextitle);
-    if (o->plaintitle)
-        g_free(o->plaintitle);
+    if (o->exacttitle)
+        g_free(o->exacttitle);
 
     g_slice_free(Options, o);
 }
@@ -195,8 +195,8 @@ static gboolean run_func(ObActionsData *data, gpointer options)
          (g_pattern_match_string(o->matchtitle, c->original_title))) &&
         (!o->regextitle ||
          (g_regex_match(o->regextitle, c->original_title, 0, NULL))) &&
-        (!o->plaintitle ||
-         (!strcmp(o->plaintitle, c->original_title))) &&
+        (!o->exacttitle ||
+         (!strcmp(o->exacttitle, c->original_title))) &&
         (!o->client_monitor ||
          (o->client_monitor == client_monitor(c) + 1)))
     {
This page took 0.02516 seconds and 4 git commands to generate.