diff options
| author | Dmitry Antipov | 2012-12-25 19:07:59 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-12-25 19:07:59 +0400 |
| commit | cd78d9b191b18dc1463bab5a55766fff1b418fcf (patch) | |
| tree | a589dd0a776733a09785a554847f0735eb8a6197 /src | |
| parent | 45dd64808b72411218cf5fb7e80b0d879141f8c8 (diff) | |
| download | emacs-cd78d9b191b18dc1463bab5a55766fff1b418fcf.tar.gz emacs-cd78d9b191b18dc1463bab5a55766fff1b418fcf.zip | |
* xterm.h (struct x_output): Remove toolbar_detached member since it's
set but never used.
* gtkutil.c (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(xg_create_tool_bar): Adjust users.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/gtkutil.c | 5 | ||||
| -rw-r--r-- | src/xterm.h | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 92ce2f795d9..dfe3e3818eb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,10 @@ | |||
| 2 | 2 | ||
| 3 | * xdisp.c (redisplay_window): Remove inner local variable | 3 | * xdisp.c (redisplay_window): Remove inner local variable |
| 4 | because the outer shadowed one has the same meaning. | 4 | because the outer shadowed one has the same meaning. |
| 5 | * xterm.h (struct x_output): Remove toolbar_detached member since it's | ||
| 6 | set but never used. | ||
| 7 | * gtkutil.c (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback) | ||
| 8 | (xg_create_tool_bar): Adjust users. | ||
| 5 | 9 | ||
| 6 | 2012-12-24 Dmitry Antipov <dmantipov@yandex.ru> | 10 | 2012-12-24 Dmitry Antipov <dmantipov@yandex.ru> |
| 7 | 11 | ||
diff --git a/src/gtkutil.c b/src/gtkutil.c index 9f2b652525f..7f50b67d1e5 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -4138,7 +4138,7 @@ xg_tool_bar_detach_callback (GtkHandleBox *wbox, | |||
| 4138 | if (f) | 4138 | if (f) |
| 4139 | { | 4139 | { |
| 4140 | GtkRequisition req, req2; | 4140 | GtkRequisition req, req2; |
| 4141 | FRAME_X_OUTPUT (f)->toolbar_detached = 1; | 4141 | |
| 4142 | gtk_widget_get_preferred_size (GTK_WIDGET (wbox), NULL, &req); | 4142 | gtk_widget_get_preferred_size (GTK_WIDGET (wbox), NULL, &req); |
| 4143 | gtk_widget_get_preferred_size (w, NULL, &req2); | 4143 | gtk_widget_get_preferred_size (w, NULL, &req2); |
| 4144 | req.width -= req2.width; | 4144 | req.width -= req2.width; |
| @@ -4173,7 +4173,7 @@ xg_tool_bar_attach_callback (GtkHandleBox *wbox, | |||
| 4173 | if (f) | 4173 | if (f) |
| 4174 | { | 4174 | { |
| 4175 | GtkRequisition req, req2; | 4175 | GtkRequisition req, req2; |
| 4176 | FRAME_X_OUTPUT (f)->toolbar_detached = 0; | 4176 | |
| 4177 | gtk_widget_get_preferred_size (GTK_WIDGET (wbox), NULL, &req); | 4177 | gtk_widget_get_preferred_size (GTK_WIDGET (wbox), NULL, &req); |
| 4178 | gtk_widget_get_preferred_size (w, NULL, &req2); | 4178 | gtk_widget_get_preferred_size (w, NULL, &req2); |
| 4179 | req.width += req2.width; | 4179 | req.width += req2.width; |
| @@ -4347,7 +4347,6 @@ xg_create_tool_bar (FRAME_PTR f) | |||
| 4347 | } | 4347 | } |
| 4348 | 4348 | ||
| 4349 | x->toolbar_widget = gtk_toolbar_new (); | 4349 | x->toolbar_widget = gtk_toolbar_new (); |
| 4350 | x->toolbar_detached = 0; | ||
| 4351 | 4350 | ||
| 4352 | gtk_widget_set_name (x->toolbar_widget, "emacs-toolbar"); | 4351 | gtk_widget_set_name (x->toolbar_widget, "emacs-toolbar"); |
| 4353 | 4352 | ||
diff --git a/src/xterm.h b/src/xterm.h index d63ed1c4583..e680cbe7dd2 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -475,8 +475,6 @@ struct x_output | |||
| 475 | GtkWidget *toolbar_widget; | 475 | GtkWidget *toolbar_widget; |
| 476 | /* The handle box that makes the tool bar detachable. */ | 476 | /* The handle box that makes the tool bar detachable. */ |
| 477 | GtkWidget *handlebox_widget; | 477 | GtkWidget *handlebox_widget; |
| 478 | /* Non-zero if the tool bar is detached. */ | ||
| 479 | int toolbar_detached; | ||
| 480 | /* Non-zero if tool bar is packed into the hbox widget (i.e. vertical). */ | 478 | /* Non-zero if tool bar is packed into the hbox widget (i.e. vertical). */ |
| 481 | int toolbar_in_hbox; | 479 | int toolbar_in_hbox; |
| 482 | 480 | ||