diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-06-02 01:19:10 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-06-02 01:19:10 +0800 |
commit | 9bad75b60b731ab75c99b2b8e90cf7ee02321f64 (patch) | |
tree | 8382fd921ea359a8949f27803cb3d264ef387ebb /lib/egg/egg-editable-toolbar.c | |
parent | cf4acf385ff54b405b0a582aa4bff2f32ff8d89a (diff) | |
download | gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar.gz gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar.bz2 gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar.lz gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar.xz gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.tar.zst gsoc2013-epiphany-9bad75b60b731ab75c99b2b8e90cf7ee02321f64.zip |
Fix more signed/unsigned problems with gcc 4.0. Patch by Martin
2005-06-01 Christian Persch <chpe@cvs.gnome.org>
* lib/egg/egg-editable-toolbar.c: (drag_data_get_cb),
(drag_data_received_cb):
* lib/egg/egg-toolbar-editor.c: (drag_data_get_cb),
(parse_item_list), (egg_toolbar_editor_load_actions):
* lib/egg/egg-toolbars-model.c: (egg_toolbars_model_to_xml),
(egg_toolbars_model_save), (parse_item_list), (parse_toolbars):
* src/ephy-notebook.c:
* src/ephy-window.c:
Fix more signed/unsigned problems with gcc 4.0. Patch by Martin
Kretzschmar, bug #306169.
Diffstat (limited to 'lib/egg/egg-editable-toolbar.c')
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index 199e9e621..4c3074480 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -249,7 +249,8 @@ drag_data_get_cb (GtkWidget *widget, } gtk_selection_data_set (selection_data, - selection_data->target, 8, target, strlen (target)); + selection_data->target, 8, + (const guchar *)target, strlen (target)); g_free (target); } @@ -444,7 +445,8 @@ drag_data_received_cb (GtkWidget *widget, target = gtk_drag_dest_find_target (widget, context, NULL); type = egg_toolbars_model_get_item_type (etoolbar->priv->model, target); - id = egg_toolbars_model_get_item_id (etoolbar->priv->model, type, selection_data->data); + id = egg_toolbars_model_get_item_id (etoolbar->priv->model, type, + (const char*)selection_data->data); /* This function can be called for two reasons * @@ -480,7 +482,7 @@ drag_data_received_cb (GtkWidget *widget, pos = gtk_toolbar_get_drop_index (GTK_TOOLBAR (widget), x, y); toolbar_pos = get_toolbar_position (etoolbar, widget); - if (data_is_separator (selection_data->data)) + if (data_is_separator ((const char*)selection_data->data)) { egg_toolbars_model_add_separator (etoolbar->priv->model, toolbar_pos, pos); |