misc gtk touchups
This commit is contained in:
@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
/* #define DEBUG_DND 1 */ /* Shouldn't be needed much these days */
|
/* #define DEBUG_DND 1 */ /* Shouldn't be needed much these days */
|
||||||
|
|
||||||
|
/* If you don't want to use gdk's signal handlers define this */
|
||||||
|
/* #define I_NEED_TO_ACTUALLY_DEBUG_MY_PROGRAMS 1 */
|
||||||
|
|
||||||
#include <X11/Xlocale.h>
|
#include <X11/Xlocale.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -261,6 +264,7 @@ gdk_init (int *argc,
|
|||||||
|
|
||||||
X_GETTIMEOFDAY (&start);
|
X_GETTIMEOFDAY (&start);
|
||||||
|
|
||||||
|
#ifndef I_NEED_TO_ACTUALLY_DEBUG_MY_PROGRAMS
|
||||||
signal (SIGHUP, gdk_signal);
|
signal (SIGHUP, gdk_signal);
|
||||||
signal (SIGINT, gdk_signal);
|
signal (SIGINT, gdk_signal);
|
||||||
signal (SIGQUIT, gdk_signal);
|
signal (SIGQUIT, gdk_signal);
|
||||||
@ -268,6 +272,7 @@ gdk_init (int *argc,
|
|||||||
signal (SIGSEGV, gdk_signal);
|
signal (SIGSEGV, gdk_signal);
|
||||||
signal (SIGPIPE, gdk_signal);
|
signal (SIGPIPE, gdk_signal);
|
||||||
signal (SIGTERM, gdk_signal);
|
signal (SIGTERM, gdk_signal);
|
||||||
|
#endif
|
||||||
|
|
||||||
gdk_display_name = NULL;
|
gdk_display_name = NULL;
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
/* #define DEBUG_DND 1 */ /* Shouldn't be needed much these days */
|
/* #define DEBUG_DND 1 */ /* Shouldn't be needed much these days */
|
||||||
|
|
||||||
|
/* If you don't want to use gdk's signal handlers define this */
|
||||||
|
/* #define I_NEED_TO_ACTUALLY_DEBUG_MY_PROGRAMS 1 */
|
||||||
|
|
||||||
#include <X11/Xlocale.h>
|
#include <X11/Xlocale.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -261,6 +264,7 @@ gdk_init (int *argc,
|
|||||||
|
|
||||||
X_GETTIMEOFDAY (&start);
|
X_GETTIMEOFDAY (&start);
|
||||||
|
|
||||||
|
#ifndef I_NEED_TO_ACTUALLY_DEBUG_MY_PROGRAMS
|
||||||
signal (SIGHUP, gdk_signal);
|
signal (SIGHUP, gdk_signal);
|
||||||
signal (SIGINT, gdk_signal);
|
signal (SIGINT, gdk_signal);
|
||||||
signal (SIGQUIT, gdk_signal);
|
signal (SIGQUIT, gdk_signal);
|
||||||
@ -268,6 +272,7 @@ gdk_init (int *argc,
|
|||||||
signal (SIGSEGV, gdk_signal);
|
signal (SIGSEGV, gdk_signal);
|
||||||
signal (SIGPIPE, gdk_signal);
|
signal (SIGPIPE, gdk_signal);
|
||||||
signal (SIGTERM, gdk_signal);
|
signal (SIGTERM, gdk_signal);
|
||||||
|
#endif
|
||||||
|
|
||||||
gdk_display_name = NULL;
|
gdk_display_name = NULL;
|
||||||
|
|
||||||
|
|||||||
@ -471,7 +471,7 @@ gtk_tree_item_size_allocate (GtkWidget *widget,
|
|||||||
child_allocation.x = border_width + GTK_TREE(widget->parent)->current_indent;
|
child_allocation.x = border_width + GTK_TREE(widget->parent)->current_indent;
|
||||||
child_allocation.y = GTK_CONTAINER (widget)->border_width;
|
child_allocation.y = GTK_CONTAINER (widget)->border_width;
|
||||||
|
|
||||||
#ifdef 0
|
#if 0
|
||||||
child_allocation.height = allocation->height - child_allocation.y * 2;
|
child_allocation.height = allocation->height - child_allocation.y * 2;
|
||||||
child_allocation.width = item->pixmaps_box->requisition.width;
|
child_allocation.width = item->pixmaps_box->requisition.width;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user