mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.1443
Problem: Can't build GTK3 with small features. Solution: Use gtk_widget_get_window(). Fix typos. (Dominique Pelle)
This commit is contained in:
@@ -1543,7 +1543,7 @@ selection_get_cb(GtkWidget *widget UNUSED,
|
|||||||
length += 2;
|
length += 2;
|
||||||
|
|
||||||
#if !GTK_CHECK_VERSION(3,0,0)
|
#if !GTK_CHECK_VERSION(3,0,0)
|
||||||
/* Looks redandunt even for GTK2 because these values are
|
/* Looks redundant even for GTK2 because these values are
|
||||||
* overwritten by gtk_selection_data_set() that follows. */
|
* overwritten by gtk_selection_data_set() that follows. */
|
||||||
selection_data->type = selection_data->target;
|
selection_data->type = selection_data->target;
|
||||||
selection_data->format = 16; /* 16 bits per char */
|
selection_data->format = 16; /* 16 bits per char */
|
||||||
@@ -1597,7 +1597,7 @@ selection_get_cb(GtkWidget *widget UNUSED,
|
|||||||
if (string != NULL)
|
if (string != NULL)
|
||||||
{
|
{
|
||||||
#if !GTK_CHECK_VERSION(3,0,0)
|
#if !GTK_CHECK_VERSION(3,0,0)
|
||||||
/* Looks redandunt even for GTK2 because these values are
|
/* Looks redundant even for GTK2 because these values are
|
||||||
* overwritten by gtk_selection_data_set() that follows. */
|
* overwritten by gtk_selection_data_set() that follows. */
|
||||||
selection_data->type = selection_data->target;
|
selection_data->type = selection_data->target;
|
||||||
selection_data->format = 8; /* 8 bits per char */
|
selection_data->format = 8; /* 8 bits per char */
|
||||||
@@ -3921,7 +3921,7 @@ gui_mch_init(void)
|
|||||||
*/
|
*/
|
||||||
/* some aesthetics on the toolbar */
|
/* some aesthetics on the toolbar */
|
||||||
# ifdef USE_GTK3
|
# ifdef USE_GTK3
|
||||||
/* TODO: Add GTK+ 3 code here using GtkCssProvider if neccessary. */
|
/* TODO: Add GTK+ 3 code here using GtkCssProvider if necessary. */
|
||||||
/* N.B. Since the default value of GtkToolbar::button-relief is
|
/* N.B. Since the default value of GtkToolbar::button-relief is
|
||||||
* GTK_RELIEF_NONE, there's no need to specify that, probably. */
|
* GTK_RELIEF_NONE, there's no need to specify that, probably. */
|
||||||
# else
|
# else
|
||||||
@@ -4447,8 +4447,8 @@ mainwin_destroy_cb(GtkObject *object UNUSED, gpointer data UNUSED)
|
|||||||
* plug's window 'min hints to set *it's* minimum size, but that's also the
|
* plug's window 'min hints to set *it's* minimum size, but that's also the
|
||||||
* only way we have of making ourselves bigger (by set lines/columns).
|
* only way we have of making ourselves bigger (by set lines/columns).
|
||||||
* Thus set hints at start-up to ensure correct init. size, then a
|
* Thus set hints at start-up to ensure correct init. size, then a
|
||||||
* second after the final attempt to reset the real minimum hinst (done by
|
* second after the final attempt to reset the real minimum hints (done by
|
||||||
* scrollbar init.), actually do the standard hinst and stop the timer.
|
* scrollbar init.), actually do the standard hints and stop the timer.
|
||||||
* We'll not let the default hints be set while this timer's active.
|
* We'll not let the default hints be set while this timer's active.
|
||||||
*/
|
*/
|
||||||
static gboolean
|
static gboolean
|
||||||
@@ -7078,6 +7078,8 @@ gui_mch_mousehide(int hide)
|
|||||||
else
|
else
|
||||||
#ifdef FEAT_MOUSESHAPE
|
#ifdef FEAT_MOUSESHAPE
|
||||||
mch_set_mouse_shape(last_shape);
|
mch_set_mouse_shape(last_shape);
|
||||||
|
#elif GTK_CHECK_VERSION(3,0,0)
|
||||||
|
gdk_window_set_cursor(gtk_widget_get_window(gui.drawarea), NULL);
|
||||||
#else
|
#else
|
||||||
gdk_window_set_cursor(gui.drawarea->window, NULL);
|
gdk_window_set_cursor(gui.drawarea->window, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1443,
|
||||||
/**/
|
/**/
|
||||||
1442,
|
1442,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user