remove gtkwindow-decorate.[ch]
This commit is contained in:
committed by
Cody Russell
parent
2e632ce7e2
commit
8f7bcc1a44
@@ -407,7 +407,6 @@ gtk_private_h_sources = \
|
||||
gtktoolpaletteprivate.h \
|
||||
gtktreedatalist.h \
|
||||
gtktreeprivate.h \
|
||||
gtkwindow-decorate.h \
|
||||
$(gtk_clipboard_dnd_h_sources)
|
||||
|
||||
# GTK+ C sources to build the library from
|
||||
@@ -627,7 +626,6 @@ gtk_base_c_sources = \
|
||||
gtkvscrollbar.c \
|
||||
gtkvseparator.c \
|
||||
gtkwidget.c \
|
||||
gtkwindow-decorate.c \
|
||||
gtkwindow.c \
|
||||
$(gtk_clipboard_dnd_c_sources)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
||||
/* GTK - The GIMP Toolkit
|
||||
* Copyright (C) 2001 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Authors: Alexander Larsson <alexl@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __GTK_WINDOW_DECORATE_H__
|
||||
#define __GTK_WINDOW_DECORATE_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
void gtk_decorated_window_init (GtkWindow *window);
|
||||
void gtk_decorated_window_calculate_frame_size (GtkWindow *window);
|
||||
void gtk_decorated_window_set_title (GtkWindow *window,
|
||||
const gchar *title);
|
||||
void gtk_decorated_window_move_resize_window (GtkWindow *window,
|
||||
gint x,
|
||||
gint y,
|
||||
gint width,
|
||||
gint height);
|
||||
GtkWidget *gtk_decorated_window_get_box (GtkWindow *window);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_WINDOW_DECORATE_H__ */
|
||||
@@ -1545,7 +1545,6 @@ gtk_window_set_title (GtkWindow *window,
|
||||
{
|
||||
gdk_window_set_title (GTK_WIDGET (window)->window, window->title);
|
||||
|
||||
gtk_decorated_window_set_title (window, title);
|
||||
gtk_label_set_text (GTK_LABEL (priv->title_label), title);
|
||||
}
|
||||
|
||||
@@ -4718,11 +4717,6 @@ gtk_window_show (GtkWidget *widget)
|
||||
was_realized = TRUE;
|
||||
}
|
||||
|
||||
/* Must be done after the windows are realized,
|
||||
* so that the decorations can be read
|
||||
*/
|
||||
gtk_decorated_window_calculate_frame_size (window);
|
||||
|
||||
/* We only send configure request if we didn't just finish
|
||||
* creating the window; if we just created the window
|
||||
* then we created it with widget->allocation anyhow.
|
||||
@@ -7103,16 +7097,7 @@ gtk_window_set_frame_dimensions (GtkWindow *window,
|
||||
window->frame_right = right;
|
||||
window->frame_bottom = bottom;
|
||||
|
||||
if (gtk_widget_get_realized (widget) && window->frame)
|
||||
{
|
||||
gint width = widget->allocation.width + left + right;
|
||||
gint height = widget->allocation.height + top + bottom;
|
||||
gdk_window_resize (window->frame, width, height);
|
||||
gtk_decorated_window_move_resize_window (window,
|
||||
left, top,
|
||||
widget->allocation.width,
|
||||
widget->allocation.height);
|
||||
}
|
||||
gtk_widget_queue_resize (GTK_WIDGET (window));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user