gnumeric r17196 - in trunk: . src
- From: jody svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17196 - in trunk: . src
- Date: Sat, 14 Mar 2009 00:38:25 +0000 (UTC)
Author: jody
Date: Sat Mar 14 00:38:25 2009
New Revision: 17196
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17196&view=rev
Log:
* Work around semantic changes in gtk-2.16.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/application.c
trunk/src/application.h
trunk/src/gnm-pane.c
trunk/src/gnm-plugin.c
trunk/src/wbc-gtk.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Sat Mar 14 00:38:25 2009
@@ -11,6 +11,9 @@
* Remove crash potential under goto and cell-format dialog with
multiple views. [Part of #364291]
+Jody:
+ * Work around semantic changes in gtk-2.16.
+
Morten:
* Fix multihead issues with cell comments.
* Fix multihead issue with sheet reordering.
Modified: trunk/src/application.c
==============================================================================
--- trunk/src/application.c (original)
+++ trunk/src/application.c Sat Mar 14 00:38:25 2009
@@ -829,12 +829,14 @@
}
GnmAppExtraUI *
-gnm_app_add_extra_ui (GSList *actions, char *layout,
+gnm_app_add_extra_ui (char const *group_name,
+ GSList *actions, char *layout,
char const *domain,
gpointer user_data)
{
GnmAppExtraUI *extra_ui = g_new0 (GnmAppExtraUI, 1);
extra_uis = g_slist_prepend (extra_uis, extra_ui);
+ extra_ui->group_name = g_strdup (group_name);
extra_ui->actions = actions;
extra_ui->layout = layout;
extra_ui->user_data = user_data;
@@ -846,6 +848,8 @@
gnm_app_remove_extra_ui (GnmAppExtraUI *extra_ui)
{
g_signal_emit (G_OBJECT (app), signals [CUSTOM_UI_REMOVED], 0, extra_ui);
+ g_free (extra_ui->group_name);
+ g_free (extra_ui);
}
void
Modified: trunk/src/application.h
==============================================================================
--- trunk/src/application.h (original)
+++ trunk/src/application.h Sat Mar 14 00:38:25 2009
@@ -80,6 +80,7 @@
GnmActionHandler handler;
};
typedef struct {
+ char const *group_name;
GSList *actions;
char *layout;
char const *domain;
@@ -91,7 +92,8 @@
GnmActionHandler handler);
void gnm_action_free (GnmAction *action);
-GnmAppExtraUI *gnm_app_add_extra_ui (GSList *actions, char *layout,
+GnmAppExtraUI *gnm_app_add_extra_ui (char const *group_name,
+ GSList *actions, char *layout,
char const *domain,
gpointer user_data);
void gnm_app_remove_extra_ui (GnmAppExtraUI *extra_ui);
Modified: trunk/src/gnm-pane.c
==============================================================================
--- trunk/src/gnm-pane.c (original)
+++ trunk/src/gnm-pane.c Sat Mar 14 00:38:25 2009
@@ -657,6 +657,8 @@
{
GtkStyle *style;
+ GNM_PANE (w)->im_block_edit_start = FALSE;
+
if (GTK_WIDGET_CLASS (parent_klass)->realize)
(*GTK_WIDGET_CLASS (parent_klass)->realize) (w);
@@ -679,8 +681,10 @@
pane = GNM_PANE (widget);
g_return_if_fail (pane != NULL);
- if (pane->im_context)
+ if (pane->im_context) {
+ pane->im_block_edit_start = TRUE;
gtk_im_context_set_client_window (pane->im_context, NULL);
+ }
(*GTK_WIDGET_CLASS (parent_klass)->unrealize)(widget);
}
Modified: trunk/src/gnm-plugin.c
==============================================================================
--- trunk/src/gnm-plugin.c (original)
+++ trunk/src/gnm-plugin.c Sat Mar 14 00:38:25 2009
@@ -363,7 +363,7 @@
PluginServiceUI *service_ui = GNM_PLUGIN_SERVICE_UI (service);
GError *err = NULL;
char *full_file_name;
- char *xml_ui;
+ char *xml_ui, *group_name;
char const *textdomain;
GO_INIT_RET_ERROR_INFO (ret_error);
@@ -383,9 +383,11 @@
g_free (full_file_name);
textdomain = go_plugin_get_textdomain (service->plugin);
- service_ui->layout_id = gnm_app_add_extra_ui (
+ group_name = g_strconcat (go_plugin_get_id (service->plugin), service->id, NULL);
+ service_ui->layout_id = gnm_app_add_extra_ui (group_name,
service_ui->actions,
xml_ui, textdomain, service);
+ g_free (group_name);
service->is_active = TRUE;
}
Modified: trunk/src/wbc-gtk.c
==============================================================================
--- trunk/src/wbc-gtk.c (original)
+++ trunk/src/wbc-gtk.c Sat Mar 14 00:38:25 2009
@@ -3240,7 +3240,7 @@
const char *ui_substr;
details = g_new0 (CustomUIHandle, 1);
- details->actions = gtk_action_group_new ("DummyName");
+ details->actions = gtk_action_group_new (extra_ui->group_name);
for (ptr = extra_ui->actions; ptr != NULL ; ptr = ptr->next) {
GnmAction *action = ptr->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]