discomfitor pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=29bcd22767f3ec8932c3b4be6901b1e646f2df77

commit 29bcd22767f3ec8932c3b4be6901b1e646f2df77
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Feb 14 13:08:09 2014 -0500

    bugfix: adding/changing comp match window types is now possible
---
 src/modules/conf_comp/e_mod_config_match.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/modules/conf_comp/e_mod_config_match.c 
b/src/modules/conf_comp/e_mod_config_match.c
index 8518a71..18cb0e5 100644
--- a/src/modules/conf_comp/e_mod_config_match.c
+++ b/src/modules/conf_comp/e_mod_config_match.c
@@ -8,7 +8,7 @@ typedef struct _Match_Config
    E_Config_Dialog *cfd;
    char            *title, *name, *clas, *role;
    int              borderless, dialog, accepts_focus, vkbd;
-   int              quickpanel, argb, fullscreen, modal;
+   int              quickpanel, argb, fullscreen, modal, primary_type;
 } Match_Config;
 
 struct _E_Config_Dialog_Data
@@ -36,6 +36,7 @@ _match_dup(E_Comp_Match *m, Match_Config *m2)
    m2->match.clas = eina_stringshare_ref(m2->match.clas);
    m2->match.role = eina_stringshare_ref(m2->match.role);
    m2->match.shadow_style = eina_stringshare_ref(m2->match.shadow_style);
+   m2->primary_type = m2->match.primary_type;
 }
 
 static void
@@ -230,7 +231,7 @@ _edit_ok(void *d1, void *d2)
    Evas_Object *dia, *bg, *of = d2;
    Evas_Object *il;
 
-   if (m->title || m->name || m->clas || m->role)
+   if (m->title || m->name || m->clas || m->role || (m->primary_type != 
m->match.primary_type))
      {
         m->cfd->cfdata->changed = 1;
         e_config_dialog_changed_set(m->cfd, 1);
@@ -266,6 +267,7 @@ _edit_ok(void *d1, void *d2)
         m->match.argb = m->argb;
         m->match.fullscreen = m->fullscreen;
         m->match.modal = m->modal;
+        m->match.primary_type = m->primary_type;
 
         il = m->cfd->cfdata->edit_il;
         {
@@ -383,7 +385,7 @@ _create_edit_frame(E_Config_Dialog *cfd, Evas *evas, 
E_Config_Dialog_Data *cfdat
    if ((cfdata->edit_il == cfdata->borders_il) ||
        (cfdata->edit_il == cfdata->overrides_il))
      {
-        rg = e_widget_radio_group_new(&m->match.primary_type);
+        rg = e_widget_radio_group_new(&m->primary_type);
 
         li = e_widget_list_add(evas, 1, 0);
 

-- 


Reply via email to