Bug 513422 – Unknown meaning of translatable messages
2009-02-18 Sven Neumann <sven@gimp.org> Bug 513422 – Unknown meaning of translatable messages * gdk/directfb/gdkdisplay-directfb.c: removed broken and commented code and the translatable messages that belonged to it. svn path=/trunk/; revision=22365
This commit is contained in:

committed by
Sven Neumann

parent
926acf9173
commit
be7349f519
@ -1,3 +1,10 @@
|
|||||||
|
2009-02-18 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
Bug 513422 – Unknown meaning of translatable messages
|
||||||
|
|
||||||
|
* gdk/directfb/gdkdisplay-directfb.c: removed broken and commented
|
||||||
|
code and the translatable messages that belonged to it.
|
||||||
|
|
||||||
2009-02-18 Sven Neumann <sven@gimp.org>
|
2009-02-18 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
Bug 560671 – the client_message API doesn't work in DirectFB
|
Bug 560671 – the client_message API doesn't work in DirectFB
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
|
||||||
* file for a list of people on the GTK+ Team. See the ChangeLog
|
* file for a list of people on the GTK+ Team. See the ChangeLog
|
||||||
* files for a list of changes. These files are distributed with
|
* files for a list of changes. These files are distributed with
|
||||||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -32,7 +32,6 @@
|
|||||||
#include "gdkprivate-directfb.h"
|
#include "gdkprivate-directfb.h"
|
||||||
#include "gdkscreen.h"
|
#include "gdkscreen.h"
|
||||||
#include "gdkdisplaymanager.h"
|
#include "gdkdisplaymanager.h"
|
||||||
#include "gdkintl.h"
|
|
||||||
#include "gdkalias.h"
|
#include "gdkalias.h"
|
||||||
|
|
||||||
|
|
||||||
@ -47,13 +46,10 @@ extern void _gdk_directfb_keyboard_init (void);
|
|||||||
|
|
||||||
static gboolean gdk_directfb_argb_font = FALSE;
|
static gboolean gdk_directfb_argb_font = FALSE;
|
||||||
static gint gdk_directfb_glyph_surface_cache = 8;
|
static gint gdk_directfb_glyph_surface_cache = 8;
|
||||||
static gchar *directfb_args;
|
|
||||||
|
|
||||||
|
|
||||||
const GOptionEntry _gdk_windowing_args[] =
|
const GOptionEntry _gdk_windowing_args[] =
|
||||||
{
|
{
|
||||||
{ "dfb",0,0,G_OPTION_ARG_STRING,&directfb_args,N_("directfb arg"),N_("sdl|system")},
|
|
||||||
{ "dfb-help",0,0,G_OPTION_ARG_NONE, NULL,NULL},
|
|
||||||
{ "disable-aa-fonts",0,0,G_OPTION_ARG_INT,&gdk_directfb_monochrome_fonts,NULL,NULL },
|
{ "disable-aa-fonts",0,0,G_OPTION_ARG_INT,&gdk_directfb_monochrome_fonts,NULL,NULL },
|
||||||
{ "argb-font",0,0, G_OPTION_ARG_INT, &gdk_directfb_argb_font,NULL,NULL},
|
{ "argb-font",0,0, G_OPTION_ARG_INT, &gdk_directfb_argb_font,NULL,NULL},
|
||||||
{ "transparent-unfocused",0,0, G_OPTION_ARG_INT, &gdk_directfb_apply_focus_opacity,NULL,NULL },
|
{ "transparent-unfocused",0,0, G_OPTION_ARG_INT, &gdk_directfb_apply_focus_opacity,NULL,NULL },
|
||||||
@ -67,43 +63,35 @@ const GOptionEntry _gdk_windowing_args[] =
|
|||||||
**/
|
**/
|
||||||
GdkDisplay * gdk_display_open (const gchar *display_name)
|
GdkDisplay * gdk_display_open (const gchar *display_name)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (_gdk_display) {
|
|
||||||
return GDK_DISPLAY_OBJECT(_gdk_display); /* single display only */
|
|
||||||
}
|
|
||||||
DFBResult ret;
|
|
||||||
IDirectFB *directfb;
|
IDirectFB *directfb;
|
||||||
IDirectFBDisplayLayer *layer;
|
IDirectFBDisplayLayer *layer;
|
||||||
IDirectFBInputDevice *keyboard;
|
IDirectFBInputDevice *keyboard;
|
||||||
|
DFBResult ret;
|
||||||
|
|
||||||
int argc=0;
|
int argc = 0;
|
||||||
char **argv=NULL;
|
char **argv = NULL;
|
||||||
|
|
||||||
#if 0 /* arg hack arg support broken*/
|
if (_gdk_display)
|
||||||
if(directfb_args ) {
|
{
|
||||||
argc=2;
|
return GDK_DISPLAY_OBJECT(_gdk_display); /* single display only */
|
||||||
argv = (char **)g_malloc(sizeof(char *)*argc);
|
}
|
||||||
argv[0] = "simple";
|
|
||||||
argv[1] = "--dfb:system=SDL";
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = DirectFBInit (&argc,&argv);
|
ret = DirectFBInit (&argc,&argv);
|
||||||
if (ret != DFB_OK)
|
if (ret != DFB_OK)
|
||||||
{
|
{
|
||||||
DirectFBError ("gdk_display_open: DirectFBInit", ret);
|
DirectFBError ("gdk_display_open: DirectFBInit", ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = DirectFBCreate (&directfb);
|
ret = DirectFBCreate (&directfb);
|
||||||
|
|
||||||
if (ret != DFB_OK)
|
if (ret != DFB_OK)
|
||||||
{
|
{
|
||||||
DirectFBError ("gdk_display_open: DirectFBCreate", ret);
|
DirectFBError ("gdk_display_open: DirectFBCreate", ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
_gdk_display = g_object_new(GDK_TYPE_DISPLAY_DFB,NULL);
|
|
||||||
_gdk_display->directfb=directfb;
|
_gdk_display = g_object_new (GDK_TYPE_DISPLAY_DFB, NULL);
|
||||||
|
_gdk_display->directfb = directfb;
|
||||||
|
|
||||||
ret = directfb->GetDisplayLayer (directfb, DLID_PRIMARY, &layer);
|
ret = directfb->GetDisplayLayer (directfb, DLID_PRIMARY, &layer);
|
||||||
if (ret != DFB_OK)
|
if (ret != DFB_OK)
|
||||||
|
Reference in New Issue
Block a user