1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

Fixed some bugs, and compilation warnings.

This commit is contained in:
dan
2000-09-24 02:31:58 +00:00
parent 41ff127444
commit ccbb6e8e15
14 changed files with 46 additions and 48 deletions

View File

@@ -1798,7 +1798,7 @@ createPanel(Panel *p)
WMSetButtonImagePosition(panel->newB, WIPAbove);
WMSetButtonText(panel->newB, _("New"));
WMSetButtonAction(panel->newB, newTexture, panel);
SetButtonAlphaImage(scr, panel->newB, TNEW_FILE);
SetButtonAlphaImage(scr, panel->newB, TNEW_FILE, NULL, NULL);
WMSetBalloonTextForView(_("Create a new texture."),
WMWidgetView(panel->newB));
@@ -1810,7 +1810,7 @@ createPanel(Panel *p)
WMSetButtonImagePosition(panel->ripB, WIPAbove);
WMSetButtonText(panel->ripB, _("Extract..."));
WMSetButtonAction(panel->ripB, extractTexture, panel);
SetButtonAlphaImage(scr, panel->ripB, TEXTR_FILE);
SetButtonAlphaImage(scr, panel->ripB, TEXTR_FILE, NULL, NULL);
WMSetBalloonTextForView(_("Extract texture(s) from a theme or a style file."),
WMWidgetView(panel->ripB));
@@ -1823,7 +1823,7 @@ createPanel(Panel *p)
WMSetButtonFont(panel->editB, font);
WMSetButtonImagePosition(panel->editB, WIPAbove);
WMSetButtonText(panel->editB, _("Edit"));
SetButtonAlphaImage(scr, panel->editB, TEDIT_FILE);
SetButtonAlphaImage(scr, panel->editB, TEDIT_FILE, NULL, NULL);
WMSetButtonAction(panel->editB, editTexture, panel);
WMSetBalloonTextForView(_("Edit the highlighted texture."),
WMWidgetView(panel->editB));
@@ -1834,7 +1834,7 @@ createPanel(Panel *p)
WMSetButtonFont(panel->delB, font);
WMSetButtonImagePosition(panel->delB, WIPAbove);
WMSetButtonText(panel->delB, _("Delete"));
SetButtonAlphaImage(scr, panel->delB, TDEL_FILE);
SetButtonAlphaImage(scr, panel->delB, TDEL_FILE, NULL, NULL);
WMSetButtonEnabled(panel->delB, False);
WMSetButtonAction(panel->delB, deleteTexture, panel);
WMSetBalloonTextForView(_("Delete the highlighted texture."),

View File

@@ -335,11 +335,10 @@ error:
static void
changeLanguageAction(WMWidget *w, void *data)
{
Panel *panel = (Panel*)data;
/*Panel *panel = (Panel*)data;*/
WMMenuItem *mi;
proplist_t pl, font;
char buffer[512];
proplist_t pl;
mi = WMGetPopUpButtonMenuItem(w, WMGetPopUpButtonSelectedItem(w));
pl = WMGetMenuItemRepresentedObject(mi);

View File

@@ -80,6 +80,9 @@ void AddSection(Panel *panel, char *iconFile);
char *LocateImage(char *name);
void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, char *file,
char *title1, char *title2);
WMWindow *GetWindow(Panel *panel);
/* manipulate the dictionary for the WindowMaker domain */

View File

@@ -106,7 +106,7 @@ void WEditMenuHide(WEditMenu *menu);
void WEditMenuUnhide(WEditMenu *menu);
void WEdirMenuShowAt(WEditMenu *menu, int x, int y);
void WEditMenuShowAt(WEditMenu *menu, int x, int y);
#endif