Added a stub for the widget helpers
This commit is contained in:
parent
e8dcb46c67
commit
60d3faf2a1
2
Makefile
2
Makefile
|
@ -55,6 +55,7 @@ dist:
|
||||||
$(PACKAGE)-$(VERSION)/include/Desktop/message.h \
|
$(PACKAGE)-$(VERSION)/include/Desktop/message.h \
|
||||||
$(PACKAGE)-$(VERSION)/include/Desktop/mime.h \
|
$(PACKAGE)-$(VERSION)/include/Desktop/mime.h \
|
||||||
$(PACKAGE)-$(VERSION)/include/Desktop/toolbar.h \
|
$(PACKAGE)-$(VERSION)/include/Desktop/toolbar.h \
|
||||||
|
$(PACKAGE)-$(VERSION)/include/Desktop/widget.h \
|
||||||
$(PACKAGE)-$(VERSION)/include/Desktop/Makefile \
|
$(PACKAGE)-$(VERSION)/include/Desktop/Makefile \
|
||||||
$(PACKAGE)-$(VERSION)/include/Desktop/project.conf \
|
$(PACKAGE)-$(VERSION)/include/Desktop/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/src/about.c \
|
$(PACKAGE)-$(VERSION)/src/about.c \
|
||||||
|
@ -65,6 +66,7 @@ dist:
|
||||||
$(PACKAGE)-$(VERSION)/src/message.c \
|
$(PACKAGE)-$(VERSION)/src/message.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/mime.c \
|
$(PACKAGE)-$(VERSION)/src/mime.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/toolbar.c \
|
$(PACKAGE)-$(VERSION)/src/toolbar.c \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/widget.c \
|
||||||
$(PACKAGE)-$(VERSION)/src/Makefile \
|
$(PACKAGE)-$(VERSION)/src/Makefile \
|
||||||
$(PACKAGE)-$(VERSION)/src/project.conf \
|
$(PACKAGE)-$(VERSION)/src/project.conf \
|
||||||
$(PACKAGE)-$(VERSION)/Makefile \
|
$(PACKAGE)-$(VERSION)/Makefile \
|
||||||
|
|
|
@ -29,5 +29,6 @@
|
||||||
# include "Desktop/message.h"
|
# include "Desktop/message.h"
|
||||||
# include "Desktop/mime.h"
|
# include "Desktop/mime.h"
|
||||||
# include "Desktop/toolbar.h"
|
# include "Desktop/toolbar.h"
|
||||||
|
# include "Desktop/widget.h"
|
||||||
|
|
||||||
#endif /* !LIBDESKTOP_DESKTOP_H */
|
#endif /* !LIBDESKTOP_DESKTOP_H */
|
||||||
|
|
|
@ -30,6 +30,8 @@ install:
|
||||||
$(INSTALL) -m 0644 mime.h $(DESTDIR)$(INCLUDEDIR)/Desktop/mime.h
|
$(INSTALL) -m 0644 mime.h $(DESTDIR)$(INCLUDEDIR)/Desktop/mime.h
|
||||||
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)/Desktop
|
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)/Desktop
|
||||||
$(INSTALL) -m 0644 toolbar.h $(DESTDIR)$(INCLUDEDIR)/Desktop/toolbar.h
|
$(INSTALL) -m 0644 toolbar.h $(DESTDIR)$(INCLUDEDIR)/Desktop/toolbar.h
|
||||||
|
$(MKDIR) $(DESTDIR)$(INCLUDEDIR)/Desktop
|
||||||
|
$(INSTALL) -m 0644 widget.h $(DESTDIR)$(INCLUDEDIR)/Desktop/widget.h
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/about.h
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/about.h
|
||||||
|
@ -40,5 +42,6 @@ uninstall:
|
||||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/message.h
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/message.h
|
||||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/mime.h
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/mime.h
|
||||||
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/toolbar.h
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/toolbar.h
|
||||||
|
$(RM) -- $(DESTDIR)$(INCLUDEDIR)/Desktop/widget.h
|
||||||
|
|
||||||
.PHONY: all clean distclean install uninstall
|
.PHONY: all clean distclean install uninstall
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
includes=about.h,accel.h,compat.h,help.h,menubar.h,message.h,mime.h,toolbar.h
|
includes=about.h,accel.h,compat.h,help.h,menubar.h,message.h,mime.h,toolbar.h,widget.h
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[about.h]
|
[about.h]
|
||||||
|
@ -24,3 +24,6 @@ install=$(INCLUDEDIR)/Desktop
|
||||||
|
|
||||||
[toolbar.h]
|
[toolbar.h]
|
||||||
install=$(INCLUDEDIR)/Desktop
|
install=$(INCLUDEDIR)/Desktop
|
||||||
|
|
||||||
|
[widget.h]
|
||||||
|
install=$(INCLUDEDIR)/Desktop
|
||||||
|
|
25
include/Desktop/widget.h
Normal file
25
include/Desktop/widget.h
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/* $Id$ */
|
||||||
|
/* Copyright (c) 2014 Pierre Pronchery <khorben@defora.org> */
|
||||||
|
/* This file is part of DeforaOS Desktop libDesktop */
|
||||||
|
/* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, version 3 of the License.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef LIBDESKTOP_DESKTOP_WIDGET_H
|
||||||
|
# define LIBDESKTOP_DESKTOP_WIDGET_H
|
||||||
|
|
||||||
|
|
||||||
|
/* Widget */
|
||||||
|
GtkWidget * desktop_widget_new(char const * name);
|
||||||
|
|
||||||
|
#endif /* !LIBDESKTOP_DESKTOP_WIDGET_H */
|
|
@ -19,7 +19,7 @@ INSTALL = install
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
libDesktop_OBJS = about.o accel.o compat.o help.o menubar.o message.o mime.o toolbar.o
|
libDesktop_OBJS = about.o accel.o compat.o help.o menubar.o message.o mime.o toolbar.o widget.o
|
||||||
libDesktop_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
libDesktop_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||||
libDesktop_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
libDesktop_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@ mime.o: mime.c ../config.h
|
||||||
toolbar.o: toolbar.c
|
toolbar.o: toolbar.c
|
||||||
$(CC) $(libDesktop_CFLAGS) -c toolbar.c
|
$(CC) $(libDesktop_CFLAGS) -c toolbar.c
|
||||||
|
|
||||||
|
widget.o: widget.c ../config.h
|
||||||
|
$(CC) $(libDesktop_CFLAGS) -c widget.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -- $(libDesktop_OBJS)
|
$(RM) -- $(libDesktop_OBJS)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ dist=Makefile
|
||||||
|
|
||||||
[libDesktop]
|
[libDesktop]
|
||||||
type=library
|
type=library
|
||||||
sources=about.c,accel.c,compat.c,help.c,menubar.c,message.c,mime.c,toolbar.c
|
sources=about.c,accel.c,compat.c,help.c,menubar.c,message.c,mime.c,toolbar.c,widget.c
|
||||||
install=$(PREFIX)/lib
|
install=$(PREFIX)/lib
|
||||||
|
|
||||||
[help.c]
|
[help.c]
|
||||||
|
@ -15,3 +15,6 @@ depends=../config.h
|
||||||
|
|
||||||
[mime.c]
|
[mime.c]
|
||||||
depends=../config.h
|
depends=../config.h
|
||||||
|
|
||||||
|
[widget.c]
|
||||||
|
depends=../config.h
|
||||||
|
|
38
src/widget.c
Normal file
38
src/widget.c
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
/* $Id$ */
|
||||||
|
/* Copyright (c) 2014 Pierre Pronchery <khorben@defora.org> */
|
||||||
|
/* This file is part of DeforaOS Desktop libDesktop */
|
||||||
|
/* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, version 3 of the License.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#include "Desktop.h"
|
||||||
|
#include "../config.h"
|
||||||
|
|
||||||
|
#ifndef PREFIX
|
||||||
|
# define PREFIX "/usr/local"
|
||||||
|
#endif
|
||||||
|
#ifndef LIBDIR
|
||||||
|
# define LIBDIR PREFIX "/lib"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Widget */
|
||||||
|
/* desktop_widget_new */
|
||||||
|
GtkWidget * desktop_widget_new(char const * name)
|
||||||
|
{
|
||||||
|
GtkWidget * ret;
|
||||||
|
|
||||||
|
/* FIXME really implement */
|
||||||
|
ret = gtk_label_new(name);
|
||||||
|
return ret;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user