diff options
| author | Dmitry Antipov | 2012-07-31 15:37:38 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-31 15:37:38 +0400 |
| commit | c09bfb2f140b2885af17185634451e2abfd6e91c (patch) | |
| tree | f0529721a19d42d6ba84f0ed96ab10562d40a727 /lwlib | |
| parent | 906debc3b7206396a00f9dd91a519909c1c9d3bb (diff) | |
| download | emacs-c09bfb2f140b2885af17185634451e2abfd6e91c.tar.gz emacs-c09bfb2f140b2885af17185634451e2abfd6e91c.zip | |
Miscellaneous fixes for non-default X toolkits.
* configure.ac (MOTIF): Check for /usr/include/openmotif
and /usr/(lib|lib64)/openmotif if --with-x-toolkit=motif.
* lwlib/lwlib-Xm.c (make_menu_in_widget): Remove unused variable.
* src/xfns.c (Fx_file_dialog): Change to SSDATA to avoid warnings.
* src/xterm.c (x_frame_of_widget): Remove redundant prototype.
Move under #ifdef USE_LUCID.
(x_create_toolkit_scroll_bar): Adjust scroll_bar_name
definition and usage to avoid warnings.
Diffstat (limited to 'lwlib')
| -rw-r--r-- | lwlib/ChangeLog | 5 | ||||
| -rw-r--r-- | lwlib/lwlib-Xm.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 0c0a88a8408..207a1200169 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-31 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | Avoid unused variable warning if --with-x-toolkit=motif. | ||
| 4 | * lwlib-Xm.c (make_menu_in_widget): Remove unused variable. | ||
| 5 | |||
| 1 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). | 8 | Use c_strcasecmp for ASCII case-insensitive comparison (Bug#11786). |
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index acd11aec6b5..eccb4db23a6 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -490,7 +490,6 @@ make_menu_in_widget (widget_instance* instance, | |||
| 490 | int child_index; | 490 | int child_index; |
| 491 | widget_value* cur; | 491 | widget_value* cur; |
| 492 | Widget button = 0; | 492 | Widget button = 0; |
| 493 | Widget title = 0; | ||
| 494 | Widget menu; | 493 | Widget menu; |
| 495 | Arg al [256]; | 494 | Arg al [256]; |
| 496 | int ac; | 495 | int ac; |
| @@ -554,7 +553,7 @@ make_menu_in_widget (widget_instance* instance, | |||
| 554 | { | 553 | { |
| 555 | ac = 0; | 554 | ac = 0; |
| 556 | XtSetArg (al[ac], XmNalignment, XmALIGNMENT_CENTER); ac++; | 555 | XtSetArg (al[ac], XmNalignment, XmALIGNMENT_CENTER); ac++; |
| 557 | title = button = XmCreateLabel (widget, cur->name, al, ac); | 556 | button = XmCreateLabel (widget, cur->name, al, ac); |
| 558 | } | 557 | } |
| 559 | else if (lw_separator_p (cur->name, &separator, 1)) | 558 | else if (lw_separator_p (cur->name, &separator, 1)) |
| 560 | { | 559 | { |