forked from enlightenment/enlightenment
Add function to set window border icon so that Import dialogs and such can
have same icon as their parent. SVN revision: 25303
This commit is contained in:
parent
3bd22b5c70
commit
b3e5363aa1
|
@ -134,6 +134,7 @@ e_int_config_theme_import(E_Config_Dialog *parent)
|
||||||
e_win_size_min_set(win, w, h);
|
e_win_size_min_set(win, w, h);
|
||||||
e_win_size_max_set(win, 99999, 99999);
|
e_win_size_max_set(win, 99999, 99999);
|
||||||
e_win_show(win);
|
e_win_show(win);
|
||||||
|
e_win_border_icon_set(win, "enlightenment/themes");
|
||||||
|
|
||||||
win->data = import;
|
win->data = import;
|
||||||
|
|
||||||
|
|
|
@ -187,6 +187,8 @@ e_int_config_wallpaper_gradient(E_Config_Dialog *parent)
|
||||||
_import_opt_disabled_set(import, 1);
|
_import_opt_disabled_set(import, 1);
|
||||||
e_dialog_resizable_set(dia, 0);
|
e_dialog_resizable_set(dia, 0);
|
||||||
e_dialog_show(dia);
|
e_dialog_show(dia);
|
||||||
|
|
||||||
|
e_dialog_border_icon_set(dia, "enlightenment/background");
|
||||||
return dia;
|
return dia;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ e_int_config_wallpaper_import(E_Config_Dialog *parent)
|
||||||
e_win_resize_callback_set(win, _import_cb_resize);
|
e_win_resize_callback_set(win, _import_cb_resize);
|
||||||
e_win_dialog_set(win, 1);
|
e_win_dialog_set(win, 1);
|
||||||
e_win_name_class_set(win, "E", "_wallpaper_import_dialog");
|
e_win_name_class_set(win, "E", "_wallpaper_import_dialog");
|
||||||
|
|
||||||
o = edje_object_add(evas);
|
o = edje_object_add(evas);
|
||||||
import->bg_obj = o;
|
import->bg_obj = o;
|
||||||
e_theme_edje_object_set(o, "base/theme/dialog", "e/widgets/dialog/main");
|
e_theme_edje_object_set(o, "base/theme/dialog", "e/widgets/dialog/main");
|
||||||
|
@ -198,6 +198,7 @@ e_int_config_wallpaper_import(E_Config_Dialog *parent)
|
||||||
e_win_size_min_set(win, w, h);
|
e_win_size_min_set(win, w, h);
|
||||||
e_win_size_max_set(win, 99999, 99999);
|
e_win_size_max_set(win, 99999, 99999);
|
||||||
e_win_show(win);
|
e_win_show(win);
|
||||||
|
e_win_border_icon_set(win, "enlightenment/background");
|
||||||
|
|
||||||
if (!e_widget_focus_get(import->bg_obj))
|
if (!e_widget_focus_get(import->bg_obj))
|
||||||
e_widget_focus_set(import->box_obj, 1);
|
e_widget_focus_set(import->box_obj, 1);
|
||||||
|
|
|
@ -365,6 +365,17 @@ e_win_evas_object_win_get(Evas_Object *obj)
|
||||||
return win;
|
return win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
e_win_border_icon_set(E_Win *win, const char *icon)
|
||||||
|
{
|
||||||
|
E_Border *border;
|
||||||
|
|
||||||
|
if (!icon) return;
|
||||||
|
border = win->border;
|
||||||
|
if (!border) return;
|
||||||
|
border->internal_icon = evas_stringshare_add(icon);
|
||||||
|
}
|
||||||
|
|
||||||
/* local subsystem functions */
|
/* local subsystem functions */
|
||||||
static void
|
static void
|
||||||
_e_win_free(E_Win *win)
|
_e_win_free(E_Win *win)
|
||||||
|
|
|
@ -65,6 +65,7 @@ EAPI void e_win_size_base_set (E_Win *win, int w, int h);
|
||||||
EAPI void e_win_step_set (E_Win *win, int x, int y);
|
EAPI void e_win_step_set (E_Win *win, int x, int y);
|
||||||
EAPI void e_win_name_class_set (E_Win *win, const char *name, const char *class);
|
EAPI void e_win_name_class_set (E_Win *win, const char *name, const char *class);
|
||||||
EAPI void e_win_title_set (E_Win *win, const char *title);
|
EAPI void e_win_title_set (E_Win *win, const char *title);
|
||||||
|
EAPI void e_win_border_icon_set (E_Win *win, const char *icon);
|
||||||
|
|
||||||
EAPI void e_win_centered_set (E_Win *win, int centered);
|
EAPI void e_win_centered_set (E_Win *win, int centered);
|
||||||
EAPI void e_win_dialog_set (E_Win *win, int dialog);
|
EAPI void e_win_dialog_set (E_Win *win, int dialog);
|
||||||
|
|
Loading…
Reference in New Issue