rename deskpreview -> bgpreview

devs/devilhorns/e_wayland
Mike Blumenkrantz 11 years ago
parent cfe46c2c40
commit e673e85f98
  1. 4
      ChangeLog
  2. 1
      NEWS
  3. 4
      src/bin/Makefile.am
  4. 2
      src/bin/e_includes.h
  5. 4
      src/bin/e_int_border_menu.c
  6. 14
      src/bin/e_widget_bgpreview.c
  7. 9
      src/bin/e_widget_bgpreview.h
  8. 9
      src/bin/e_widget_deskpreview.h
  9. 4
      src/modules/conf_display/e_int_config_desks.c

@ -1,3 +1,7 @@
2013-04-19 Mike Blumenkrantz
* deskpreview renamed to bgpreview
2013-04-18 Mike Blumenkrantz
* startup splash screen moved to compositor canvas

@ -60,6 +60,7 @@ Changes:
* e_shelf_desk_visible_get now takes const params
* e_util_size_debug_set now also prints for object show/hide events
* E_FN_DEL renamed to E_FREE_FUNC for consistency
* deskpreview renamed to bgpreview
Config:
* move winlist_warp_speed option to pointer_warp_speed
* bindings now use new E_Binding_Event structs for mouse events

@ -175,7 +175,7 @@ e_widget_color_well.h \
e_widget_config_list.h \
e_widget_csel.h \
e_widget_cslider.h \
e_widget_deskpreview.h \
e_widget_bgpreview.h \
e_widget_entry.h \
e_widget_filepreview.h \
e_widget_flist.h \
@ -341,7 +341,7 @@ e_widget_color_well.c \
e_widget_config_list.c \
e_widget_csel.c \
e_widget_cslider.c \
e_widget_deskpreview.c \
e_widget_bgpreview.c \
e_widget_entry.c \
e_widget_filepreview.c \
e_widget_flist.c \

@ -119,7 +119,7 @@
#include "e_obj_dialog.h"
#include "e_filereg.h"
#include "e_widget_aspect.h"
#include "e_widget_deskpreview.h"
#include "e_widget_bgpreview.h"
#include "e_fm_prop.h"
#include "e_mouse.h"
#include "e_order.h"

@ -935,8 +935,8 @@ _e_border_menu_cb_sendto_pre(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi)
e_menu_item_disabled_set(submi, EINA_TRUE);
}
// FIXME: Remove labels and add deskpreview to menu.
// Evas_Object *o = e_widget_deskpreview_add(m->evas, 4, 2);
// FIXME: Remove labels and add bgpreview to menu.
// Evas_Object *o = e_widget_bgpreview_add(m->evas, 4, 2);
for (i = 0; i < zone->desk_x_count * zone->desk_y_count; i++)
{

@ -25,7 +25,7 @@ static void _e_wid_cb_resize(void *data, Evas *evas, Evas_Object *obj, void
static Eina_Bool _e_wid_cb_bg_update(void *data, int type, void *event);
EAPI Evas_Object *
e_widget_deskpreview_add(Evas *evas, int nx, int ny)
e_widget_bgpreview_add(Evas *evas, int nx, int ny)
{
Evas_Object *obj;
E_Widget_Data *wd;
@ -45,7 +45,7 @@ e_widget_deskpreview_add(Evas *evas, int nx, int ny)
evas_object_show(wd->table);
e_widget_sub_object_add(wd->obj, wd->table);
e_widget_deskpreview_num_desks_set(obj, wd->dx, wd->dy);
e_widget_bgpreview_num_desks_set(obj, wd->dx, wd->dy);
evas_object_event_callback_add(obj, EVAS_CALLBACK_RESIZE,
_e_wid_cb_resize, NULL);
@ -53,7 +53,7 @@ e_widget_deskpreview_add(Evas *evas, int nx, int ny)
}
EAPI void
e_widget_deskpreview_num_desks_set(Evas_Object *obj, int nx, int ny)
e_widget_bgpreview_num_desks_set(Evas_Object *obj, int nx, int ny)
{
E_Widget_Data *wd;
@ -64,7 +64,7 @@ e_widget_deskpreview_num_desks_set(Evas_Object *obj, int nx, int ny)
}
EAPI Evas_Object *
e_widget_deskpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h)
e_widget_bgpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h)
{
E_Widget_Desk_Data *dd;
const char *bgfile;
@ -79,7 +79,7 @@ e_widget_deskpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int
dd->icon = edje_object_add(evas_object_evas_get(obj));
e_theme_edje_object_set(dd->icon, "base/theme/widgets",
"e/widgets/deskpreview/desk");
"e/widgets/bgpreview/desk");
dd->thumb = e_icon_add(evas_object_evas_get(obj));
e_icon_fill_inside_set(dd->thumb, EINA_FALSE);
@ -103,7 +103,7 @@ e_widget_deskpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int
}
EAPI void
e_widget_deskpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool enable)
e_widget_bgpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool enable)
{
E_Widget_Desk_Data *dd;
@ -207,7 +207,7 @@ _e_wid_reconfigure(E_Widget_Data *wd)
{
Evas_Object *dp;
dp = e_widget_deskpreview_desk_add(wd->obj, zone, x, y, mw, mh);
dp = e_widget_bgpreview_desk_add(wd->obj, zone, x, y, mw, mh);
evas_object_size_hint_aspect_set(dp, EVAS_ASPECT_CONTROL_BOTH, zone->w, zone->h);
evas_object_table_pack(wd->table, dp, x, y, 1, 1);
wd->desks = eina_list_append(wd->desks, dp);

@ -0,0 +1,9 @@
#ifndef E_WIDGET_DESK_PREVIEW_H
#define E_WIDGET_DESK_PREVIEW_H
EAPI Evas_Object *e_widget_bgpreview_add(Evas *evas, int nx, int ny);
EAPI void e_widget_bgpreview_num_desks_set(Evas_Object *obj, int nx, int ny);
EAPI Evas_Object *e_widget_bgpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h);
EAPI void e_widget_bgpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool enable);
#endif

@ -1,9 +0,0 @@
#ifndef E_WIDGET_DESK_PREVIEW_H
#define E_WIDGET_DESK_PREVIEW_H
EAPI Evas_Object *e_widget_deskpreview_add(Evas *evas, int nx, int ny);
EAPI void e_widget_deskpreview_num_desks_set(Evas_Object *obj, int nx, int ny);
EAPI Evas_Object *e_widget_deskpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h);
EAPI void e_widget_deskpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool enable);
#endif

@ -201,7 +201,7 @@ _basic_create_widgets(E_Config_Dialog *cfd __UNUSED__, Evas *evas, E_Config_Dial
ob = e_widget_label_add(evas, _("Click to change wallpaper"));
e_widget_frametable_object_append(of, ob, 0, 0, 1, 1, 1, 1, 1, 1);
ob = e_widget_deskpreview_add(evas, cfdata->x, cfdata->y);
ob = e_widget_bgpreview_add(evas, cfdata->x, cfdata->y);
e_widget_frametable_object_append(of, ob, 0, 1, 1, 1, 1, 1, 1, 1);
cfdata->preview = ob;
@ -267,5 +267,5 @@ _cb_slider_change(void *data, Evas_Object *obj __UNUSED__)
{
E_Config_Dialog_Data *cfdata = data;
e_widget_deskpreview_num_desks_set(cfdata->preview, cfdata->x, cfdata->y);
e_widget_bgpreview_num_desks_set(cfdata->preview, cfdata->x, cfdata->y);
}

Loading…
Cancel
Save